Optimizing out unnecessary allocations

David Nadlinger see at klickverbot.at
Wed Oct 17 14:00:22 PDT 2012


On Wednesday, 17 October 2012 at 20:37:53 UTC, Artur Skawina 
wrote:
> Well, I think such optimizations are fine (as long as 
> documented and there
> exists alternatives), but note that this testcase checks for 
> the case where
> the object size calculation overflows. Ie it must not succeed.

Could you elaborate on that? It strikes me that this is either a 
GC implementation detail or invalid D code in the first place 
(i.e. should not be expected to compile resp. is undefined 
behavior).

David


More information about the Digitalmars-d mailing list