[Challenge] implementing the ambiguous operator in D

Philippe Sigaud philippe.sigaud at gmail.com
Sun Sep 5 07:24:43 PDT 2010


2010/9/5 Denis Koroskin <2korden at gmail.com>

> On Sun, 05 Sep 2010 16:59:31 +0400, Philippe Sigaud <
> philippe.sigaud at gmail.com> wrote:
>
>  But the real challenge in the SO question is the 'going back in time'
>> part,
>> which I have trouble to understand : how can you modify x and y through a
>> multiplication and a comparison?
>>
>>
> It can be done using setjmp/longjmp, see C implementation for an example:
>
> http://homepage.mac.com/sigfpe/Computing/continuations.html
>

How can we access setjmp/longjmp in D?

Anyway, I'm a bit nervous with using such a raw statement. An oh-so-slightly
wrapped equivalent for D would be better.


Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20100905/682e0b1f/attachment.html>


More information about the Digitalmars-d mailing list