[Issue 2753] Cannot declare pointer to function returning ref
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 21 15:34:32 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2753
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
Keywords| |spec
------- Comment #1 from smjg at iname.com 2009-03-21 17:34 -------
The problem seems to be an ambiguity in the grammar: is it ref (int function())
or (ref int) function()?
Maybe we need a bracket notation for ref like we have for const and invariant.
Note that, if we have both this and the notation proposed in bug 1961, ref and
inout would no longer be synonyms.
--
More information about the Digitalmars-d-bugs
mailing list