Thread overview | ||||||
---|---|---|---|---|---|---|
|
July 28, 2010 [Issue 4526] New: dmd crash with writeln of functions | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@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: ------- |
July 28, 2010 Re: [Issue 4526] New: dmd crash with writeln of functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | > --- Comment #0 from bearophile_hugs@eml.cc 2010-07-28 14:49:50 PDT ---
>
> (cut)
>
> 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.
Um.. stop that. Don't mix bug reports with discussion of only semi-related stuff together. Don't use bugzilla as a discussion thread in general.
|
July 28, 2010 [Issue 4526] dmd crash with writeln of functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=4526 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from bearophile_hugs@eml.cc 2010-07-28 15:25:51 PDT --- Closed because Brad Roberts has correctly noted this is a bug report and an enchantment request in one. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 28, 2010 Re: [Issue 4526] New: dmd crash with writeln of functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Roberts | Brad Roberts:
> Um.. stop that. Don't mix bug reports with discussion of only semi-related stuff together. Don't use bugzilla as a discussion thread in general.
You are right, that muddles two different things. To fix the situation I have closed it and created a bug report (4529) and an enhancement request (4530).
Sorry, bye,
bearophile
|
Copyright © 1999-2021 by the D Language Foundation