structured assembler (BASIC) [Really: C builtin functions?]

Henry Spencer henry at utzoo.UUCP
Sat Apr 12 05:04:46 AEST 1986


> ... but sizeof qualifies as a builtin function, 
> even though it is a compile-time function vs run-time.   Anyone disagree?

Fraid so.  Sizeof is an *operator*, which can (but does not have to be)
invoked with a function-like syntax.  If foo is a variable, "sizeof foo"
(note no parentheses) is legitimate.  The parentheses are necessary for
syntactic reasons when the operand of sizeof is a type -- and if you
think this is easy to parse, you should try it sometime! -- but they
do not make sizeof a function.
-- 
Support the International League For The Derision Of User-Friendliness!

				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,decvax,pyramid}!utzoo!henry



More information about the Comp.lang.c mailing list