[Prev][Next][Index][Thread]

# Re: PROG: invalid objects

- Date: Wed, 18 Oct 1995 12:25:53 PDT
- From:
- Cc: moo-cows@parc.xerox.com
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <m0t5a30-000Kl4C@foley.ripco.com>

    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

References:

- PROG: invalid objects

- From: abakun@rci.ripco.com (ThwartedEfforts)

- Prev: PROG: invalid objects
- Next: receive_line hack
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index