A
Asfand Yar Qazi
Hi,
I've been hanging around on the irc channel recently, getting advice to
reimplement my incomplete C++ game engine in Ruby (I've redone about 2
weeks work in 2 days!)
Here's my problem: instead of using setjmp/longjmp to script my game's
story-line (scripting in C++, tut-tut, what was I thinking?!), I
obviously want to use a Ruby feature, and I assume Continuations are the
thing to do it.
But I don't understand how! My mind is just going upside-down (perhaps
I need to give coding a break for a day or two...)
Anyway, could I have a simple example to start with?
Thanks,
Asfand Yar
I've been hanging around on the irc channel recently, getting advice to
reimplement my incomplete C++ game engine in Ruby (I've redone about 2
weeks work in 2 days!)
Here's my problem: instead of using setjmp/longjmp to script my game's
story-line (scripting in C++, tut-tut, what was I thinking?!), I
obviously want to use a Ruby feature, and I assume Continuations are the
thing to do it.
But I don't understand how! My mind is just going upside-down (perhaps
I need to give coding a break for a day or two...)
Anyway, could I have a simple example to start with?
Thanks,
Asfand Yar