Is this a syntax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • parag_paul@hotmail.com

    Is this a syntax

    I saw the following declaration some where

    int a (int a, int b , int c /* 0 */)


    Does the comment in the bracket act as a default value creator
  • Richard Heathfield

    #2
    Re: Is this a syntax

    parag_paul@hotm ail.com said:
    I saw the following declaration some where
    >
    int a (int a, int b , int c /* 0 */)
    >
    >
    Does the comment in the bracket act as a default value creator
    No. It's just a comment. Comment removal happens in TP3. Translation
    (where, if they existed, rules about default parameter values would be
    followed) doesn't happen until TP7.

    --
    Richard Heathfield <http://www.cpax.org.uk >
    Email: -http://www. +rjh@
    Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
    "Usenet is a strange place" - dmr 29 July 1999

    Comment

    Working...