digitalmars.D.bugs - [Issue 5130] New: writeln cannot take delegate
- d-bugmail puremagic.com (29/29) Oct 29 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5130
- d-bugmail puremagic.com (11/11) Jan 04 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5130
- d-bugmail puremagic.com (13/15) Jan 05 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5130
- d-bugmail puremagic.com (12/12) Apr 21 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5130
- d-bugmail puremagic.com (7/7) Dec 31 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5130
- d-bugmail puremagic.com (10/10) Jan 01 2013 http://d.puremagic.com/issues/show_bug.cgi?id=5130
http://d.puremagic.com/issues/show_bug.cgi?id=5130
Summary: writeln cannot take delegate
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody puremagic.com
ReportedBy: zan77137 nifty.com
writeln, format, Tuple(T).toString and so on cannot take delegate(in trunk
r2116).
This code should compile:
----
import std.stdio;
void main()
{
writeln({});
}
----
This bug occurred recently.
On dmd 2.042, this bug doesn't occur.
http://ideone.com/iXHoB
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 29 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5130
Andrei Alexandrescu <andrei metalanguage.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrei metalanguage.com
09:43:05 PST ---
I wonder if printing the type of the delegate is the smartest thing to do.
After all one can always print typeid(...) if that's what's needed.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 04 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5130I wonder if printing the type of the delegate is the smartest thing to do. After all one can always print typeid(...) if that's what's needed.I think so, too. However, there is a problem in Tuple. Because Tuple struct was not able to receive delegate for toString function, I made it printable as first aid. As well as Tuple, a problem may occur. Range, container, assert message... It may be that you had better offer the default print method to support the generic programming. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 05 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5130
SomeDude <lovelydear mailmetrash.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lovelydear mailmetrash.com
PDT ---
2.059:
PS E:\DigitalMars\dmd2\samples> rdmd bug.d
402020
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 21 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5130 PST --- Checked on 3 compilers, it compiles and runs. This one should be closed, I guess. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 31 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5130
Maxim Fomin <maxim maxim-fomin.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |maxim maxim-fomin.ru
Resolution| |FIXED
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 01 2013









d-bugmail puremagic.com 