Re: feature request: structs

From: Date: Fri, 25 Aug 2000 18:06:38 +0000
Subject: Re: feature request: structs
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-30681@lists.php.net to get a copy of this message
What you would gain from this is completely negligible. It's not worth to 'pollute' the language with new semantics just for marginally increased performance. Classes in PHP are in fact structs with functions. If you don't use the functions, you're left with fully functional structs. Zeev On Fri, 25 Aug 2000, Mathieu Kooiman (ggInternet) wrote: > It'd use less memory right? > No need to define and emalloc() etc function tables.. > > and it seems more appropriate, a class would just be overhead. > > --CaPS > > On Fri, 25 Aug 2000, Andrei Zmievski wrote: > > > On Fri, 25 Aug 2000, Mathieu Kooiman (ggInternet) wrote: > > > > > > Hiya, > > > > > > I've ran into several situations where I'd would want to use > > > something to store data in but not being a class instance. > > > Pretty much like C's struct .. > > > > > > Thoughts? > > > > How would that be different from class for all intents and purposes? > > > > -Andrei > > > > "Man, if you gotta ask you'll never know." > > - Louis Armstrong, when asked "What is jazz?" > > > > > -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#30681) next »