www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4526] New: dmd crash with writeln of functions

reply d-bugmail puremagic.com writes:
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: -------
Jul 28 2010
next sibling parent reply Brad Roberts <braddr slice-2.puremagic.com> writes:
 --- 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.
Jul 28 2010
parent bearophile <bearophileHUGS lycos.com> writes:
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
Jul 28 2010
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Jul 28 2010