[Issue 2752] std.xml does not encode CData correctly
http://d.puremagic.com/issues/show_bug.cgi?id=2752 --- Comment #1 from ben+dm...@bagi.us 2009-03-21 10:07 --- Created an attachment (id=293) -- (http://d.puremagic.com/issues/attachment.cgi?id=293action=view) Return correct representation of CData section --
[Issue 2753] New: Cannot declare pointer to function returning ref
http://d.puremagic.com/issues/show_bug.cgi?id=2753 Summary: Cannot declare pointer to function returning ref Product: D Version: 2.025 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzi...@digitalmars.com ReportedBy: jlqu...@optonline.net ref int c() { static int a=2; return a; } ref int function() d = c; // line 8 foo.d(8): variable foo.d only parameters or foreach declarations can be ref Type inference, however, is able to figure it out: ref int c() { static int a=2; return a; } auto d = c; // whee Correctly reporting the issue from bug 2735 --
[Issue 2753] Cannot declare pointer to function returning ref
http://d.puremagic.com/issues/show_bug.cgi?id=2753 s...@iname.com changed: What|Removed |Added CC||s...@iname.com Keywords||spec --- Comment #1 from s...@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. --
[Issue 2754] New: The error message regarding implicit conversion to shared doesn't mention shared in the message.
http://d.puremagic.com/issues/show_bug.cgi?id=2754 Summary: The error message regarding implicit conversion to shared doesn't mention shared in the message. Product: D Version: 2.022 Platform: PC OS/Version: Windows Status: NEW Keywords: diagnostic Severity: trivial Priority: P3 Component: DMD AssignedTo: bugzi...@digitalmars.com ReportedBy: sandf...@jhu.edu Error: cannot implicitly convert expression (new A) of type hello.A to A v.s. the corresponding immutable error: Error: cannot implicitly convert expression (new A) of type hello.A to immutable(A) Test case: class A {} void foo( shared A y ) {} void main() { foo(new A()); } P.S. D 2.026 isn't available yet as an option in bugzilla. --