feature request expanded class object? Re: how to use GC as a leak detector? i.e. get some help info from GC?
Leandro Lucarella
llucax at gmail.com
Mon May 25 10:06:40 PDT 2009
nobody, el 25 de mayo a las 07:37 me escribiste:
> == Quote from Leandro Lucarella (llucax at gmail.com)'s article
> > benefit from using NO_SCAN if your 800M of data are plain old data. Did
> > you tried it? And if you never have interior pointers to that data, your
> > program can possibly avoid a lot of false positives due to the
> > conservativism if you use NO_INTERIOR (this is only available if you patch
>
> No, my data are classes (not structs), and they need to be class by some other
> design considerations;
> and worse they contain pointers to other data, e.g.
>
> class SmallDataA { // need to be class
> }
>
> class SmallDataB { // need to be class
> SmallDataA a; // in D 'a' is a reference, or 'pointer'
> }
>
> I have thought about use POD. I think the above code in C++ will be more what I
> want: i.e. the 'a' object (not the reference) is embedded directly into
> SmallDataB. I guess when I have millions of such SmallDataB objects, it will make
> the GC busy in D since 'a' is reference.
>
> So question: can we have such expanded class objects in D?
There are request for them, but not for now...
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
CAYO HUGO CONZI --- TENIA PUESTA PELUCA
-- Crónica TV
More information about the Digitalmars-d
mailing list