Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Looking for giggles
Index -> Off Topic
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
btiffin




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
SNIPERDUDE




PostPosted: Thu Mar 18, 2010 10:41 pm   Post subject: RE:Looking for giggles

VHDL. Razz
Insectoid




PostPosted: 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.
DemonWasp




PostPosted: 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.
Display posts from previous:   
   Index -> Off Topic
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: