For Programmers: Free Programming Magazines  


Home > Archive > Ruby > August 2005 > Ruby article









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Ruby article
Joe Van Dyk

2005-08-29, 7:02 pm

Fairly interesting article on Ruby:=20
http://www.tbray.org/ongoing/When/200x/2005/08/27/Ruby

I'm not familiar with COBOL though, can someone explain how the
'retry' example in the Pickaxe is supposedly bad?


ts

2005-08-29, 7:02 pm

>>>>> "J" == Joe Van Dyk <joevandyk@gmail.com> writes:

J> I'm not familiar with COBOL though, can someone explain how the
J> 'retry' example in the Pickaxe is supposedly bad?

Well ALTER in COBOL is something like this (if memory is good)

PERFORM 10-ACTION THRU 99-EXIT.

10-ACTION.
* the first call to PERFORM will go here
ALTER 10-ACTION TO 20-ACTION.
GOTO 99-EXIT.

20-ACTION.
* the next call to PERFORM will go here
GOTO 99-EXIT.

99-EXIT.
EXIT.

When you read the PERFORM statement you can't know where the program will
go because this can changed latter with a ALTER


Guy Decoux







Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com