[progress Communities] [progress Openedge Abl] Forum Post: Re: To Return Or To Not Return?

  • Thread starter Thread starter Patrick Tingen
  • Start date Start date
Status
Not open for further replies.
P

Patrick Tingen

Guest
No, I don't use the RETURN-VALUE because I think it is a dangerous concept. It is not clear what it tries to do. If you really need to give something back to the caller, better make it explicit by using parameters. This also prevents you from accidentally breaking the system. I have (more than once) broken a RETURN-VALUE concept, just by adding an extra intermediate call and not giving back the RETURN-VALUE. Simply because I overlook it. You cannot forget to use parameters if the program has them. Or at least the runtime will kindly remind you of them :)

Continue reading...
 
Status
Not open for further replies.
Back
Top