[Issue 5130] writeln cannot take delegate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 5 07:03:11 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5130



--- Comment #2 from SHOO <zan77137 at nifty.com> 2011-01-05 07:00:52 PST ---
(In reply to comment #1)
> 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.

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: -------


More information about the Digitalmars-d-bugs mailing list