[Issue 5219] @noheap annotation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 19 18:42:49 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=5219



--- Comment #9 from bearophile_hugs at eml.cc 2013-02-19 18:42:48 PST ---
(In reply to comment #8)

> We definitely need to mark localized sections of code to be off limits from the
> GC.

The point of annotations like @nogc or @noheap is to denote and disable
specific kinds of side effects. In a language that tries to be efficient and
safe it's quite useful to have a precise control on what side effects a piece
of code has. On the other hand D was not designed for such precise control from
the beginning, so such annotations are handled not so well, they require some
work to be used, the inference of kinds of side effects is not refined, etc.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list