Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang,net.lang.c Subject: Re: structured assembler (BASIC) [Really: C builtin functions?] Message-ID: <6584@utzoo.UUCP> Date: Fri, 11-Apr-86 14:04:46 EST Article-I.D.: utzoo.6584 Posted: Fri Apr 11 14:04:46 1986 Date-Received: Fri, 11-Apr-86 14:04:46 EST References: <443@3comvax.UUCP> <7900003@ztivax.UUCP>, <584@ihdev.UUCP> Organization: U of Toronto Zoology Lines: 14 Keywords: BASIC, C > ... 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