Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007688opensim[REGION] Scripting Enginepublic2015-08-18 14:042015-10-18 12:16
Reportercinderblocks 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
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

default
{
    state_entry()
    {
        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
Viewer
Attached Files

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

-  Notes
(0029512)
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 :(

- 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


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker