From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <20030507160118.26257.qmail@f.bio.cse.psu.edu> To: 9fans@cse.psu.edu Subject: Re: [9fans] same functions everywhere In-Reply-To: Message from "Russ Cox" of "Wed, 07 May 2003 10:43:32 EDT." <1e60225df5d323bb940b32776c4c9ab0@plan9.bell-labs.com> From: Scott Schwartz Date: Wed, 7 May 2003 12:01:18 -0400 Topicbox-Message-UUID: a28ba404-eacb-11e9-9e20-41e7f4b1d025 | You're all nuts. But at least use nelem(a) in | place of sizeof(a)/sizeof(int). Maybe nelem should be a compiler builtin, so it can draw a syntax error when applied to anything that has decayed to a pointer (i.e. almost every use of an array).