Re: Catching signals with D

2011-12-24 Thread Jonathan M Davis
On Saturday, December 24, 2011 10:58:19 Andrew Wiley wrote: > On Sat, Dec 24, 2011 at 7:37 AM, Matej Nanut wrote: > > @Heywood Floyd: that works, but what exactly am I permitted to use > > inside > > the handler, as I assume it's a C function? This might be a useless > > question as non-atomic ope

Re: Catching signals with D

2011-12-24 Thread Andrew Wiley
On Sat, Dec 24, 2011 at 7:37 AM, Matej Nanut wrote: > @Heywood Floyd: that works, but what exactly am I permitted to use inside > the handler, as I assume it's a C function? This might be a useless question > as non-atomic operations touching global data aren't supposed to be in > signal handlers,

Re: Catching signals with D

2011-12-24 Thread Matej Nanut
@Heywood Floyd: that works, but what exactly am I permitted to use inside the handler, as I assume it's a C function? This might be a useless question as non-atomic operations touching global data aren't supposed to be in signal handlers, but I'm still interested to know. @Alex Rønne Petersen: wha

Re: Catching signals with D

2011-12-23 Thread Alex Rønne Petersen
On 22-12-2011 23:51, Matej Nanut wrote: Hello everyone, I've been fascinated by D lately and have been using it for all my school assignments (like simple ray casting and simulated annealing). What I can't find anywhere is how to do something like "signal(SIGINT, myhandler)" (I'm in a Linux envi

Re: Catching signals with D

2011-12-22 Thread Heywood Floyd
On 12/22/11 23:51 , Matej Nanut wrote: Hello everyone, I've been fascinated by D lately and have been using it for all my school assignments (like simple ray casting and simulated annealing). What I can't find anywhere is how to do something like "signal(SIGINT, myhandler)" (I'm in a Linux envir