__FUNCTION__ implemented with mixins and mangles

davidl davidl at nospam.org
Sun Jun 14 21:51:08 PDT 2009


在 Mon, 15 Jun 2009 12:43:55 +0800,BCS <none at anon.com> 写道:

> Hello Nick,
>
>> "Ary Borenszweig" <ary at esperanto.org.ar> wrote in message
>> news:h149vq$21ku$1 at digitalmars.com...
>>
>>> zsxxsz escribió:
>>>  I never had to use them in other languages. Why? Because debugging
>>> support in them is excelent. So maybe enhancing debugging support for
>>> D is better than adding a couple of keywords just to make *printf
>>> debugging* better.
>>>
>> Great, now try to take that language with great debugging support, and
>> use it to do the same wonderful debugging on a *platform* that doesn't
>> have excellent debugging support. Not everyone writes desktop apps.
>> Besides, there's been plenty of times I've solved a problem using
>> __blah__ and printf debugging in less time than it would have taken to
>> fire up the debugger. And as for __FUNCTION__, that's useful for DRY.
>>
>
> I've fixed a number of bugs with "fprintf" and a diff tool that I  
> /still/ don't care to consider doing with just a debugger. And that's in  
> C# under VS with one of the best debuggers ever written.

However, you can understand how code runs much easier with a debugger  
rather than just read the source. For me, a debugger provides an easier  
way to understand code written by others.

-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/



More information about the Digitalmars-d mailing list