imports in functions
Jacob Carlborg
doob at me.com
Mon Jun 20 01:04:57 PDT 2011
On 2011-06-20 05:18, Ary Manzana wrote:
> On 6/19/11 5:20 AM, Andrej Mitrovic wrote:
>> This is such a great debugging tool. I mean ddbg is great on its own.
>> But being able to quickly import std.stdio and do a few debug writes
>> in some library function is fantastic.
>
> print-debugging is so common... in Ruby you always have "puts"
> available, no need to require anything. Why not do the same for D?
"puts", don't you use "p"? Shorter and prints better information.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list