Skip to content

Discrepancy in (integer *= float); between LSL Mono and LSL Luau #85

@canny

Description

@canny

I'm reporting this one because we are looking for all the differences, but I don't think that it has any real use.


// LSL Mono

default { state_entry() {

    integer a = 2;

    (a *= 2.2);

    llOwnerSay((string)a);  // --> 4

}}


// LSL Luau

default { state_entry() {

    integer a = 2;

    (a *= 2.2);  // --> Script run-time error : cannot take result of integer *= float

}}

a *= 2.2; works in both, float f = (a *= 2.2); errors in both.

https://secondlife.canny.io/admin/feedback/slua-alpha/p/discrepancy-in-integer-float-between-lsl-mono-and-lsl-luau

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions