Anonymous | Login | Signup for a new account | 2021-01-25 05:51 PST | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Summary | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0005023 | opensim | [REGION] Scripting Engine | public | 2010-09-03 10:10 | 2019-02-05 06:10 | |||||
Reporter | janine serpente | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | confirmed | Resolution | open | |||||||
Platform | Operating System | Operating System Version | ||||||||
Product Version | ||||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0005023: LSL won't let you set a default value to another integer in a declaration | |||||||||
Description | this compiles in SL, not in opensim integer STATE_OFF = 0; integer State = STATE_OFF; default { state_entry() {} } | |||||||||
Tags | No tags attached. | |||||||||
Git Revision or version number | 0.69+ | |||||||||
Run Mode | Standalone (1 Region) | |||||||||
Physics Engine | BasicPhysics | |||||||||
Script Engine | ||||||||||
Environment | .NET / Windows64 | |||||||||
Mono Version | None | |||||||||
Viewer | ||||||||||
Attached Files | ||||||||||
![]() |
|
(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. |
![]() |
|||
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 |