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 =)
 
-- 
View this message in context: 
http://old.nabble.com/SDL.get_video_info%28%29-docs-tp30799952p30801097.html
Sent from the Pike - Dev mailing list archive at Nabble.com.

  • SDL... Matthew Clarke
    • ... Martin Bähr
      • ... larcky
        • ... Martin Baehr
          • ... larcky
            • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum

Reply via email to