Bug:Priority order of logical operators

Will Davis <[email protected]>
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
Hi all,

Jon, I think I may have found a bug in the priority ordering of logical 
operators. I have found that my simulation runs differently when I have:

x || y && z

rather than

x || (y && z)

Having the brackets should not make a difference, as AND is a more 
important operator than OR, but there is a marked difference (in that 
the sim actually works with the brackets!). If you can't see what's 
going wrong I can provide you with more detailed code, as above is just 
an abstraction to illustrate the point.

I've also noticed a problem when I'm passing vectors between methods, 
and adding or subtracting them, but haven't yet worked out whether this 
is due to me being dum or a possible bug in breve - I seem to have to 
swap two vectors around when passed to another method, as if their 
variable names have been swapped - but I'm not sure yet, so I'll look at 
it more and let you know.

Keep up the good work - I did a presentation to the research group today 
and they were all impressed with breve!

Cheers,

Will
_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.