Menu

#294 C99 alternative tokens support

closed
None
5
2010-09-19
2010-09-19
wek
No

This is rather weird support request for a feature, which apparently lost its reason long ago with the universal acceptance of ASCII-capable editors... Nevertheless, it is part of the standard, so a standard compliant compiler should support it, however strange it may be.

In 6.4.6#3, C99 writes:
In all aspects of the language, the six tokens
<: :> <% %> %: %:%:
behave,respectively,the same as the six tokens
[ ] { } # ##
except for their spelling.

The pre-processor appears to perfectly accept %: in place of #; the compiler (2.9.0) refuses the <: :> and <% %>.

Jan Waclawek

Discussion

  • Philipp Klaus Krause

    The digraphs already appeared in C95, long before C99.

    Philipp

     
  • Borut Ražem

    Borut Ražem - 2010-09-19
    • assigned_to: nobody --> borutr
    • status: open --> closed
     
  • Borut Ražem

    Borut Ražem - 2010-09-19

    Implemented in svn revision #5986.

    Borut

     

Log in to post a comment.

MongoDB Logo MongoDB