Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!glacier!hplabs!sdcrdcf!psivax!nrcvax!jj From: jj@nrcvax.UUCP Newsgroups: net.lang,net.lang.c Subject: Re: structured assembler (BASIC) [Really: C builtin functions?] Message-ID: <631@nrcvax.UUCP> Date: Fri, 18-Apr-86 18:03:20 EST Article-I.D.: nrcvax.631 Posted: Fri Apr 18 18:03:20 1986 Date-Received: Mon, 21-Apr-86 02:42:51 EST References: <443@3comvax.UUCP> <7900003@ztivax.UUCP> Reply-To: jj@nrcvax.UUCP (Jeff Jennings - NRC-Utah) Organization: Network Research Research Corp. Oxnard,CA Lines: 23 Keywords: BASIC, C Xref: watmath net.lang:2377 net.lang.c:8640 In article <584@ihdev.UUCP> pdg@ihdev.UUCP (55224-P. D. Guthrie) writes: > >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 'Sizeof' does not have to look like a function at all. Think of it as a multi-character operator. It seems to be convention to always use 'sizeof(x)' when 'sizeof x' would work the same. The parenthesis are only necessary when 'x' is a type. I guess this is the same as most people using 'return (x)' instead of just 'return x'. -- ------------------------------------------------------------------------- Jeff Jennings Network Research Corp. ihnp4!nrcvax!jj 923 Executive Park Drive Suite C ucbvax!calma!nrcvax!jj Salt Lake City, Utah 84117, U.S.A. {sdcsvax,hplabs}!sdcrdcf!psivax!nrcvax!jj (801) 266-9194