Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ittatc!dcdwest!sdcsvax!ncr-sd!ncrcae!ncsu!uvacs!edison!jso From: jso@edison.UUCP (John Owens) Newsgroups: net.lang,net.lang.c Subject: Re: Re: structured assembler (BASIC) [Really: C builtin functions?] Message-ID: <705@edison.UUCP> Date: Thu, 24-Apr-86 11:29:55 EDT Article-I.D.: edison.705 Posted: Thu Apr 24 11:29:55 1986 Date-Received: Sun, 27-Apr-86 07:20:13 EDT References: <443@3comvax.UUCP> <7900003@ztivax.UUCP> Organization: General Electric Company, Charlottesville, VA Lines: 21 Xref: watmath net.lang:2401 net.lang.c:8741 > You are sort of right, but sizeof qualifies as a builtin function, > even though it is a compile-time function vs run-time. Anyone disagree? > > Paul Guthrie `When the going gets weird, > ihnp4!ihdev!pdg The weird turn pro' > - H. Thompson Yes. Try this on your favorite C compiler and tell me if you still think that "sizeof" is a function as opposed to an operator. main() { int a; printf("%d\n",sizeof a); /* note no parentheses */ } John Owens @ General Electric Company (+1 804 978 5726) edison!jso%virginia@CSNet-Relay.ARPA [old arpa] edison!jso@virginia.EDU [w/ nameservers] jso@edison.UUCP [w/ uucp domains] {cbosgd allegra ncsu xanth}!uvacs!edison!jso [roll your own]