On Sun, Jan 30, 2011 at 02:32:54PM +0000, Matthew Clarke wrote: > I haven't changed the return type but I'm sure it's not right. It's > given as void|object but I can't see how it would ever not return > anything. If the video device is uninitialized, Pike returns 0 (the > original C function returns NULL). Wouldn't that be a special type of > (null) object rather than void?
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.
