$ in identifiers -- poll

Joe Kelsey joe at fluke.UUCP
Fri Dec 21 05:15:10 AEST 1984


>From: henry at utzoo.UUCP (Henry Spencer)
>'$' is, alas, commonly used as an escape from C, for example in yacc.

I ported yacc to VMS, where identifiers can contain $, and encountered
absolutely no problems!  yacc only uses identifiers of the form $n,
where n is some small number, so as long as you stay away from
identifiers like that, there is no problem.  I see no real reason to
loose sleep over the incompatibility with yacc, as there is no problem
in practice.

/Joe



More information about the Comp.lang.c mailing list