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

           Summary: @noheap annotation
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2010-11-15 13:44:26 PST ---
In D often heap allocations are the main cause of low performance code, or they
may cause less deterministic code (in video games, etc).

A function annotation named "@noheap" may help (similar to @nothrow), it makes
sure a function/method contains no heap allocations (new of
arrays/objects/structs, array concat, array append, closures, associative array
insertions, malloc/realloc/calloc, and so on, but not alloca()) and doesn't
call other things that perform heap allocations.

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

Reply via email to