Re: object() function

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu