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



--- Comment #12 from Rob T <[email protected]> 2013-02-20 09:06:59 PST ---
(In reply to comment #11)
> More than just annotating "no GC" or "no Heap", what would be nice is being
> able to mark any sections with the same qualifiers as functions.
> 
> For example, for certain types of touchy cleanup, it would *tremendously* help
> being able to have a "nothrow" section, which means "while my function can
> legally throw an exception, I need this specific section to not throw 
> anything,
> and I need the compiler to enforce this for me".
> 
> Ditto for "@safe". And, why not, const.

Yes I agree. This has been brought up before with respect to @trusted since it
makes a lot of sense to be able to mark @trusted sections of unsafe code in a
@safe function. I have no idea why this was not done by design from the start
because it seems too obvious to have been missed. Are there issues with the
idea that we don't know about?

--rt

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

Reply via email to