Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005023opensim[REGION] Scripting Enginepublic2010-09-03 10:102019-02-05 06:10
Reporterjanine serpente 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005023: LSL won't let you set a default value to another integer in a declaration
Descriptionthis compiles in SL, not in opensim

integer STATE_OFF = 0;
integer State = STATE_OFF;
default {
state_entry() {}
}
TagsNo tags attached.
Git Revision or version number0.69+
Run ModeStandalone (1 Region)
Physics EngineBasicPhysics
Environment.NET / Windows64
Mono VersionNone
Viewer
Attached Files

- Relationships

-  Notes
(0016732)
Snoopy (administrator)
2010-09-03 12:15

Yes, I can confirm this incompatibility.
(0016736)
kcozens (administrator)
2010-09-03 16:50

This report is a duplicate of bug 0002559.
(0025644)
LuciusSirnah (reporter)
2014-03-29 12:24

I looked closer into the code, the SYMBOL class which represents lsl functions and their tree of lexed substatements doesn't have any information regarding scope that I am noticing, a fix to this would require a scope check, as the error being thrown by the C# compiler relates to setting FIELDS to the value of other FIELDS as their initial value. This is completely valid in the case of localized script values.
(0025646)
LuciusSirnah (reporter)
2014-03-29 19:04

using OpenSim.Region.ScriptEngine.Shared;
using System.Collections.Generic;

namespace SecondLife
{
    public class Script : OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass
    {
        public Script() : base() {}

        LSL_Types.LSLInteger i = new LSL_Types.LSLInteger(1);
        LSL_Types.LSLInteger j = i;
        
        public void default_event_state_entry()
        {
      
        }

    }
}
(0034148)
tampa (reporter)
2019-02-05 06:10

Confirmed on master(XEngine), compiles on YEngine however.

- Issue History
Date Modified Username Field Change
2010-09-03 10:10 janine serpente New Issue
2010-09-03 10:10 janine serpente Git Revision => 0.69+
2010-09-03 10:10 janine serpente SVN Revision => 0
2010-09-03 10:10 janine serpente Run Mode => Standalone (1 Region)
2010-09-03 10:10 janine serpente Physics Engine => BasicPhysics
2010-09-03 10:10 janine serpente Environment => .NET / Windows64
2010-09-03 10:10 janine serpente Mono Version => None
2010-09-03 12:15 Snoopy Note Added: 0016732
2010-09-03 12:15 Snoopy Status new => confirmed
2010-09-03 16:50 kcozens Note Added: 0016736
2014-03-29 12:24 LuciusSirnah Note Added: 0025644
2014-03-29 19:04 LuciusSirnah Note Added: 0025646
2019-02-05 06:10 tampa Note Added: 0034148


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker