OSNews article about C++09 degenerates into C++ vs. D discussion
Julio César Carrascal Urquijo
jcesar at phreaker.net
Mon Nov 20 14:35:17 PST 2006
Sean Kelly wrote:
> Julio César Carrascal Urquijo wrote:
>>
>> Is there a way to tell the garbage collector "don't look for
>> references here" without using malloc and friends?
>
> Not in its current form, but the modifications to allow this are fairly
> simple. The compiler can even set the same flag for dynamic arrays
> containing elements smaller than pointer size.
>
>
> Sean
So as long as I use byte[] or short[] this would be possible in a future
implementation of the GC, right? Well that's better, at least for
cryptographic data.
Still sound data is often represented as int/long samples witch could
pose problems on 32bit or 64bit platforms.
Anyway we still need a better implementation of the GC to address this
concerns.
More information about the Digitalmars-d
mailing list