[Issue 11921] dmd doesn't like expressions in templates, only values

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 13 12:45:19 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11921


Brad Anderson <eco at gnuk.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eco at gnuk.net


--- Comment #1 from Brad Anderson <eco at gnuk.net> 2014-01-13 12:45:17 PST ---
This is actually because parse() takes a ref source and that slice is an
rvalue.

I recommend doing this instead:

auto seed = hash[0..2].to!int;

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


More information about the Digitalmars-d-bugs mailing list