Martin Bähr wrote:
that is what void is. if a function returns void, and you assign that, the result is 0. there is no null object in pike, generally 0 is used for that purpose. (and it works reasonaly well, except when you are dealing with integers)
greetings, martin.
Ahaaa... I knew you could assign 0 to just about everything but didn't realize that included 'void' as well. So you could look at void as a type that can only take one value (0), and then use it to document that a function returns 0 if it can't return its other main type (except, as you say, for integers)? Thanks =)