[Issue 5043] writeln with empty arrays should write something useful

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 16 00:26:00 PST 2010


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


Denis Derman <denis.spir at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |denis.spir at gmail.com


--- Comment #2 from Denis Derman <denis.spir at gmail.com> 2010-12-16 00:24:11 PST ---
(In reply to comment #0)
> writeln( [1, 2, 3] ); // prints "[1, 2, 3]"
> writeln( [] ); // prints "" (nothing)
> 
> Why doesn't writeln( [] ) print "[]"? It seems to me that "[]" would be far
> more useful, and it is certainly more consistent with the non-empty array
> behaviour.
> 
> I know this is a minor thing, but if I'm trying to debug, blank lines aren't
> very much use, and actually cause more confusion than enlightenment.

+++

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