imports in functions

Ary Manzana ary at esperanto.org.ar
Mon Jun 20 02:42:20 PDT 2011


On 6/20/11 3:04 PM, Jacob Carlborg wrote:
> 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.
>

Ah, yes, you are right. I use it. p "!" is my battle horse.


More information about the Digitalmars-d mailing list