Just because it's a slow Thursday on this forum
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Wed Feb 10 07:21:32 PST 2016
On 02/10/2016 09:22 AM, Daniel Kozak via Digitalmars-d wrote:
> It is something else. Same as php has echo and var_dump. writeln just
> output value of some variable, but dump will print names and values of
> variables, so you can see structure of your data.
Oh btw one nice thing about dump would be to display strings in "dson"
format, i.e. the same way they'd appear in a D declaration. Example:
s = "This is\na\tstring."
writeln(s) would output:
====
This is
a string.
====
whereas dump!(s) would write:
====
s = "This is\na\tstring."
====
Andrei
More information about the Digitalmars-d
mailing list