Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007688opensim[REGION] Scripting Enginepublic2015-08-18 14:042018-11-26 10:06
Assigned ToUbitUmarov 
StatusclosedResolutionwon't fix 
PlatformLinuxOSSlackwareOS Version14.1
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0007688: Order of operations incorrect when subtracting two lsl vectors
DescriptionWhen subtracting an inline vector from an inline vector in a script, it fails to compile giving Syntax Error.
The same script compiles and runs in Second Life under both Mono and LSB.
Steps To Reproduce// Simple enough script fails to compile unless you parenthesize each vector forcing them to be initialized before the subtraction operation

        vector c = <7, 8, 9> - <4, 5, 6>;
TagsNo tags attached.
Git Revision or version numberc83da03
Run Mode Grid (1 Region per Sim)
Physics EngineBulletSim
EnvironmentMono / Linux64
Mono Version4.0.1
Attached Files

- Relationships
related to 0007062closedMata Hari utterly mystifying Syntax error (parsing error in vector math?) 

-  Notes
UbitUmarov (administrator)
2015-10-18 08:46

this is a current issue with lsl syntax parser, that will take some time to fix.
problem is that the sequence '> -' causes the '-' to be assumed as a unary operation (negative of following value) and not as subtraction, so parser ends up with two values ( A and (-B)) and no operation to perform on them.

Please place vector constants inside "()" as in "(<1,2,3>) - <4,5,6>", since a fix is not expected soon :(
eekee (reporter)
2018-11-26 09:21

Present in OpenSim Snail Dev OSgrid

This is why I like languages like Forth and APL. *trollface*
UbitUmarov (administrator)
2018-11-26 09:32

already answered several times
a old XEngine parsing issue not easy to fix.

- Issue History
Date Modified Username Field Change
2015-08-18 14:04 cinderblocks New Issue
2015-08-18 19:09 Mata Hari Relationship added related to 0007062
2015-10-18 08:46 UbitUmarov Note Added: 0029512
2018-11-26 09:21 eekee Note Added: 0033544
2018-11-26 09:32 UbitUmarov Note Added: 0033545
2018-11-26 09:32 UbitUmarov Status new => closed
2018-11-26 09:32 UbitUmarov Assigned To => UbitUmarov
2018-11-26 09:32 UbitUmarov Resolution open => won't fix

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker