[Issue 4526] New: dmd crash with writeln of functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 28 14:49:52 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4526
Summary: dmd crash with writeln of functions
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-07-28 14:49:50 PDT ---
D2 code, compiled with dmd 2.047:
import std.stdio;
void main() {
string a();
writeln(typeid(typeof(a)));
string function() b;
writeln(typeid(typeof(b)));
}
By the way, what's the point in allowing/keeping ugly and error-prone function
literals in D2?
It's better for D2 to keep/allow only _one_ standard, clean and readable syntax
for functions pointers (and one for delegates, if necessary). Keeping C
function pointer syntax or something similar in D2 causes troubles.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list