May 16, 2002
"OddesE" <OddesE_XYZ@hotmail.com> wrote in message news:ab6925$272k$1@digitaldaemon.com...
> Walter are structs also garbage collected and
> 'reference-counted' as it were, or are they
> allocated on the stack?

structs are gc'd if they are allocated with new, and they are on the stack if they are declared there. You can allocate them with c.stdlib.malloc if you want <g>.


May 16, 2002
"Russ Lewis" <spamhole-2001-07-16@deming-os.org> wrote in message news:3CD6B5B4.AC9EDA1C@deming-os.org...
> I was looking for both, frankly :)  Syntax sugar is nice...more efficient
GC
> is nice, too.  Neither are horribly important to me.

D also supports using alloca(), which is something I use a lot.


1 2
Next ›   Last »