A list of lsl-luau vs mono discrepancies observed on luau 2026-07-24 channel

Aperta
#110 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@HaroldCindy ci sta già lavorando.

Dal 4/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Here is a list of observed differences between Mono and LSL VM:


float nan = (float)"nan";

llOwnerSay((string)(nan >= 1.0)); // Output: LSO=math error Mono=1 LSL-LUAU=0

llOwnerSay((string)(nan <= 1.0)); // Output: LSO=math error Mono=1 LSL-LUAU=0

And a test script:


integer param(integer p)

{

    return p++ + p;

}

default

{

    state_entry()

    {

        integer a = 1;

        llOwnerSay("1 (Mono = 0): " + (string)((a = 2) == a)); // Output in lsl-luau: 1

        a = 1;

        llOwnerSay("2 (Mono = 1): " + (string)(a++ == a)); // Output in lsl-luau: 0

        llOwnerSay("3 (Mono = 2): " + (string)param(1)); // Output in lsl-luau: 3

        // float->int cast

        float f = 0.7;

        llOwnerSay("4 (Mono = 7): " + (string)((integer)(f * 10.0))); // Output in lsl-luau: 6

        integer i = 16777217;

        float z = 0.0;

        llOwnerSay("5 (Mono=  16777216): " + (string)((integer)(i + z))); // Output in lsl-luau: 16777217

        // bit shifts

        integer s = 32;

        llOwnerSay("6 (Mono = 1): " + (string)(1 << s)); // Output in lsl-luau: 0

        llOwnerSay("7 (Mono = -2147483648): " + (string)(1 << -1)); // Output in lsl-luau: 0

        llOwnerSay("8 (Mono = 4): " + (string)(8 >> 33)); // Output in lsl-luau: 0

    }

}

https://secondlife.canny.io/admin/feedback/slua-alpha/p/a-list-of-lsl-luau-vs-mono-discrepancies-observed-on-luau-2026-07-24-channel

Lingua principale
C++
Stelle
25
Fork
14
Merge medio
1g 4h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di secondlife/slua

Tutte le issue di secondlife/slua

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.