Summary: built-in associative array's length is nothrow
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: druntime

--- Comment #0 from Masahiro Nakagawa <> 2011-02-09 
08:35:27 PST ---
I have following code:

    // aa is a string[string];
    nothrow bool empty() const
        return aa.length == 0;

I want use this code but dmd fails.

    Error: function hoge.Foo.empty 'empty' is nothrow yet may throw

built-in AA's length() depends on _aaLen in rt/aaA.d.
I think these functions should be nothrow.

This issue breaks my template engine API ;(

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to