[squeak-dev] Re: Letting Set contain nils?

Louis LaBrunda Lou at Keystone-Software.com
Sun Aug 10 15:16:40 UTC 2008


Hi Igor,

How about creating a new class called #MetaUndefinedObject or #MetaNil.  Stick
it between #Object and #UndefinedObject.  By definition it would never be used
as an object, it would only be used as a filler for collections like #Set,
indicating that no "real" object is present.

This would allow nil to be used in sets and elsewhere and allow it to be placed
in a set from a database row where a column is null without changing other code.

This would not solve the recursive collection problem but that could be solved
at it source.

Lou
-----------------------------------------------------------
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com




More information about the Squeak-dev mailing list