Just because it's a slow Thursday on this forum
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 9 06:38:23 PST 2016
On 02/09/2016 07:46 AM, Jakob Ovrum wrote:
>
>
> void main()
> {
> import std.stdio : stdout;
>
> int a = 42;
> string b = "foo";
> float c = 3.14;
>
> dump!(a, b, c)(); // a = 42, b = foo, c = 3.14
> stdout.dump!(a, b, c)(" | "); // a = 42 | b = foo | c = 3.14
> }
I think this is good stuff and should go in Phobos. Where particularly?
-- Andrei
More information about the Digitalmars-d
mailing list