Computer Science Canada

Looking for giggles

Author:  btiffin [ Thu Mar 18, 2010 10:40 pm ]
Post subject:  Looking for giggles

So, if you had to

What language would you use to code your way out of a wet paper bag?

Cheers
I'd try it first with Forth, something like -1 0 DO R> DROP DROP LOOP and hope that underflowing both the return and data stack would tear a hole large enough for escape

Author:  SNIPERDUDE [ Thu Mar 18, 2010 10:41 pm ]
Post subject:  RE:Looking for giggles

VHDL. Razz

Author:  Insectoid [ Thu Mar 18, 2010 11:12 pm ]
Post subject:  RE:Looking for giggles

Ruby:

until bag.empty do
    bag.chomp!
end


That's how I'd do it.

Author:  DemonWasp [ Thu Mar 18, 2010 11:40 pm ]
Post subject:  RE:Looking for giggles

Two options:

code:

while ( ! bag.isDry() );
// I'm now in a dry paper bag, a much more hospitable environment


code:

int main ( int argc, char ** argv ) {
    memset ( &argc-40, 0, 40 );
}


The above probably doesn't actually compile, but if it does, it'd rip quite the hole.


: