Hi Kyle, William, 2010/5/1 William <[email protected]>: > Please try again, in case we aren't guessing correctly that you meant > to do this: > > var byte a = 7 > aabb(a) > print_var(a) ; point 2 This is what I meant (and point 2 is to check if a has changed). The procedure call was indeed left out by mistake, sorry for that.
2010/5/1 Kyle <[email protected]>: > Part of this is volatile variables mean two *different* things depending on > how they're used! What are those two things? One = used in a normal variable definition and Two = used in a procedure parameter definition? > When passed to a procedure, `volatile byte in aa,' passes the pseudo-variable > a'get. If one doesn't exist, one is created for you. > >> aa=aa+1 > > This should fail, and does. But not gracefully. If you pass, `in out,' this > will succeed. > > To make things even stranger, if you simply pass `byte in aa',' then aa = aa + > 1 is well defined. > Yes, I noticed the difference. So effectivly 'volatile in' makes the variable read-only, right? Reading aa when defined 'volatile out aa' fails gracefully. If I understand correct, 'volatile out' makes the variable write only... Maybe add a few words to the manual on the effect of volatile when used in a parameter definition... BTW, did you have a chance to look at my bug reports? Especially 20100407 puzzles me - it is a pretty straight-forward program of about 100 lines that combines many common jallib functions and I have no idea why it fails... Joep -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
