Grafting Functional Support on Top of an Imperative Language
Simen Kjaeraas
simen.kjaras at gmail.com
Fri Apr 4 16:52:45 PDT 2008
On Sat, 05 Apr 2008 01:09:14 +0200, Jason House
<jason.james.house at gmail.com> wrote:
> bearophile wrote:
>> P. 31: >writeln(i);<
>>
>> Can you put (temporary) debugging writeln/putr inside a pure function?
>
> That's always bothered me about this stuff. I don't want to lose
> debugging/logging ability!
Just use multiple return types, and have the caller do the printing.
--Simen
More information about the Digitalmars-d
mailing list