Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005422opensim[REGION] Scripting Enginepublic2011-03-27 03:062015-07-13 05:09
ReporterMaike Short 
Assigned To 
StatusnewResolutionunable to reproduce 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005422: (i = 1); fails to compile
DescriptionLSL Plus often generated braces around assignments. While this works fine on SL, it fails on OpenSimulator:

(4,0): Error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
Additional Informationinteger i;

default {
        (i = 1);
TagsNo tags attached.
Git Revision or version number0
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBasicPhysics
Script Engine
Mono VersionNone
Attached Files

- Relationships
duplicate of 0005006patch included LSL implementation does not allow parenthesis assignments 
related to 0005576closedmakopoppo string s=( oldstring ="") + oldstring; returns a null string 

-  Notes
nebadon (administrator)
2011-03-27 03:12

I just tested this script on Master git OpenSim, on OSgrid it compiles fine for me. You do not specify what version you are using can you please let us know.
nebadon (administrator)
2011-03-27 03:15

here is a screenshot to show its working for me [^]
Maike Short (reporter)
2011-03-27 11:41

Sorry, i did not find how to get the version information at first.

I can reproduce it at:

Grid: OSGrid (osgrid)
Built with GCC version 4.3.2
You are at 2920245.2, 2827590.7, 22.0 in Stonehaven located at (
OpenSim 0.7.1 Dev OSgrid 0.7.1 (Dev) 04e3ae3: 2011-03-16 (Win/.NET) [^]
nebadon (administrator)
2011-03-27 11:53

Interesting, i am running a slightly newer version than you, I will try to pack up a new OSGrid release today, maybe you can test with that version, the only other difference is I am running on Mono under Linux and you are on .net on Windows. I will post here when new release is up.
nebadon (administrator)
2011-03-27 12:33

Maike, i have posted new release you can get the link here : [^]

Please try this new version and let me know if you still have the issue.
Marck (reporter)
2011-03-28 02:52
edited on: 2011-03-28 02:53

This has been fixed for loops with "for", see Mantis 0003874. It has deliberately not been changed for other instances of such parentheticals, because those could be used in constructs like the one for the "spacesave hack" known from SL; this hack is neither necessary nor possible with OSSL. For details, please refer to Mantis 0005006 where this has been discussed.

kenvc (reporter)
2011-03-28 04:15

I have also seen a case where a space between a variable and an operand caused the code to work in Linux but fail in Windows. Such as (N=1) vs (N = 1)
Prometheus.Romulus (reporter)
2015-07-13 05:09

Has this fix been incorporated into the main build? I'm having the exact same problems as originally indicated, with any parenthesized assignments being rejected, etc.

- Issue History
Date Modified Username Field Change
2011-03-27 03:06 Maike Short New Issue
2011-03-27 03:06 Maike Short Git Revision => 0
2011-03-27 03:06 Maike Short SVN Revision => 0
2011-03-27 03:06 Maike Short Run Mode => Grid (Multiple Regions per Sim)
2011-03-27 03:06 Maike Short Physics Engine => BasicPhysics
2011-03-27 03:06 Maike Short Environment => Unknown
2011-03-27 03:06 Maike Short Mono Version => None
2011-03-27 03:12 nebadon Note Added: 0018175
2011-03-27 03:13 nebadon Resolution open => unable to reproduce
2011-03-27 03:15 nebadon Note Added: 0018176
2011-03-27 11:41 Maike Short Note Added: 0018178
2011-03-27 11:53 nebadon Note Added: 0018179
2011-03-27 12:33 nebadon Note Added: 0018180
2011-03-28 02:52 Marck Relationship added duplicate of 0005006
2011-03-28 02:52 Marck Note Added: 0018184
2011-03-28 02:53 Marck Note Edited: 0018184
2011-03-28 04:15 kenvc Note Added: 0018185
2011-07-09 07:15 makopoppo Relationship added related to 0005576
2015-07-13 05:09 Prometheus.Romulus Note Added: 0028897

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker