# PROG: invalid objects

Kipp the Kidd (mcmudge@mailbox.syr.edu)
Wed, 18 Oct 1995 12:25:53 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    On Wed, 18 Oct 1995, ThwartedEfforts wrote:

    > >Since
    > >you're trying to use create(), I also assume you're using recycle()...
    > >that leaves holes in your database...  which isn't a problem, but just a
    > >pain for programmers who write grepping things...
    >
    > We recently got into a discussion on invalid object numbers and holes in the
    >  database on RiverMOO... I'm interested in knowing what grepping utilities
    >  have problems with invalid objects and why.

    Nay, I'm just talking about those proggers that assume there's no holes
    to optimize their code if they're looking for something particular:

    for x in [0..tonum(max_object())]
      o=toobj(x);
      if(index(o.blah,argstr))
        player:tell("Found on ",o);
      endif
    endfor

    ...No valid checks, but it saves 2 or 3 ticks each time around...
    unnessary, in my opinion, but it saves time to not have to write out the
    checks when you're in a rush...

    - Kipp