[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: game developers?
- From: Steve Dekorte <steve@...>
- Date: Mon, 31 Jul 2000 22:10:14 -0700
David Jeske <jeske@chat.net> wrote:
> That would also work well. :)
>
> > None = {}
Some of the nice things about using a global None table
(with a boolean tag method) are:
- you can have it behave as an object. For example, if
you might want None to raise an error when you send it
a message(like Python), or you might want it to ignore
any messages sent to it(like Objective-C).
- it works for table values that are booleans as well as a place
holder for slots meant to hold objects.
- you can use a boolean tag to treat other object as booleans,
For instance, you could have global False and True objects, like
Smalltalk.
Steve