|
Charlie Massoglia wrote: > > What I really want is the following: > > GOTO VARNAME > > Where you put the address of the tag to which you want to branch. > > A variation of this would be the following: > > EVAL VARNAME = %ADDR(TAGNAME) + NUM > > GOTO VARNAME > > I just love self-modifying code. > This one will get you a lot of angry mail. This kind of technique may make shorter code but it is way to prone to bad programming. The problem with goto is not the goto itself (it is the most powerful control opcode). The problem is that it is very easy to make bad code with it. Your suggested improvement would make this even more likely. I know that avoiding goto will not, by itself, make you programs more maintainable, but for every program where a goto was used in a good manner, there is ten where not. Also, someone posted a reply of the sort: If you dont like it, dont use it and leave us alone. I would accept this argument if and only if this person can garanty me that no one else but him will ever have to modify is code. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. Questions * * should be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.