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

Reply via email to