Re: object() function
- Posted by David Cuny <dcuny at LANSET.COM> Jul 30, 1998
- 594 views
Robert mentioned: >In 2.0 and earlier there's a bug in object(). It should always >return 1, but it doesn't. I came across this bug >and fixed it a few weeks ago. No one ever >reported it. object() wasn't even listed in LIBRARY.DOC >(until I added it just recently). I was wondering about that. I had noticed that it was missing from the help file I generated from LIBRARY.DOC, but thought it might be a bug in my code - I never bothered to look for it. I spent some time puzzling over how to implement: type object( object o ) in Gnuphoria, because it recursively used the object type in it's definition. It finally occured to me that it wasn't really a test at all, since no value could make it fail. Duh. Sometimes, it's just best to shut off the machine and go to bed. -- David Cuny