• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-1335
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: davie zinner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Mono beta: integer *= float difference

Created: 29/Jan/08 08:20 PM   Updated: 12/Feb/08 12:30 PM
Return to search
Component/s: Scripts
Affects Version/s: Mono Beta
Fix Version/s: None

Issue Links:
Relates
 

Linden Lab Issue ID: DEV-9891
Linden Lab Internal Branch: mono-based-on-77880


 Description  « Hide
LSL permits integer *= float and evaluates it at run-time, rounding off the result before assigning it to the integer variable. (Arguably it should give a compile-time error of "type mismatch"). Mono compiles it without complaint, but gives a run-time error of "Invalid IL code". The += operator reasonably causes a "type mismatch" compiler error in both LSL and Mono; it's just the *= operator that's different.

default
{
state_entry()

{ integer n = 1; n *= 1.0; }

}



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Scouse Linden added a comment - 31/Jan/08 07:22 AM
Compiler change. May be rolled out independently of sim code.