This one bit me today

Sandy Mustard mustard at sdrc.UUCP
Thu Oct 26 00:33:14 AEST 1989


In article <1989Oct23.161744.29153 at utzoo.uucp>, henry at utzoo.uucp (Henry Spencer) writes:

> Nobody has ever quite gotten around to using `@' in C.

Actually somebody has!!  SAS C on 370 has an option to allow the '@'
character to indicate that the argument in a function call should be
passed by reference.  It basically has the same meaning as the '&' but
the '@' can be used on non-lvalues such as constants and expressions.

char c;

     func(&c, @20);

will cause a pointer to a temporary copy of an int with a value of 20
to be passed to the function.

Sandy Mustard



More information about the Comp.lang.c mailing list