Re: sizeof foo vs sizeof (foo) (Was Re: [PHP-DEV] PHP audit)
| From: | Wez Furlong | Date: | Thu, 14 Mar 2002 13:54:03 +0000 |
| Subject: | Re: sizeof foo vs sizeof (foo) (Was Re: [PHP-DEV] PHP audit) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81221@lists.php.net to get a copy of this message | ||
On 14/03/02, "Zeev Suraski" <zeev@zend.com> wrote:
> We know :) And yet, we always use sizeof(), regardless of whether we feed
> it with a type or a value.
I meant to say that :)
> At 15:34 14/03/2002, Jedi/Sector One wrote:
> > The correct sizeof semantics are
> > sizeof <value>
> > or:
> > sizeof( <type> )
I didn't know that! (and how long have I been coding in C??).
It's interesting that most compilers that I have used _can_
handle 'sizeof type'.
--Wez.