D vs. ISRs (interrupt service routines) or Which D language features implictly allocate memory?
Sean Kelly
sean at f4.ca
Sun May 6 00:05:53 PDT 2007
Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Sean Kelly schrieb am 2007-05-05:
>> As others have said, string concatenation (via ~), the .dup property,
>> insertions into AAs (and possibly removals as well), and 'new' calls.
>> Those are the only language features I can think of that allocate.
>
> Depending on the libary implementation
> "foreach(char c; dchar[])" and .sort might heap allocate too.
Good point. Though neither of these allocate in Phobos/GPhobos (for the
record).
Sean
More information about the Digitalmars-d
mailing list