|
To toggle indicators I use: indicator = not indicator; to store the result of a comparation I often use: var1 = var2 = var3;Even if I realize that some people may get cofused (not somebody who knows well RPG). The meaning is quiete clear only if the name of var1 is evidently an indicator and var2 var3 are data.
___________________________________________________________________________ Rory Hewitt wrote:
My $0.02... I like: var1 = ( var2 = var3 ); and I hate: var1 = var2 = var3; I think the first version makes it much clearer that var1 is set to the value of an expression, whereas the second version could be taken (incorrectly) to mean that var1 and var2 both take the value of var3. Also, to 'toggle indicators, I use this a lot: Ind = ( Ind = *off ); Rory On 12/13/06, AGlauser@xxxxxxxxxxxx <AGlauser@xxxxxxxxxxxx> wrote:Do people like or dislike this type of code: /free var1 = (var2 = value); namedIndicator = (var1 = var2); /end-free Thanks in advance for any opinions, Adam
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.