Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global string variables with backslashes get doubled in .lsl #6

Closed
NeoBokrug opened this issue Feb 24, 2016 · 3 comments
Closed

Global string variables with backslashes get doubled in .lsl #6

NeoBokrug opened this issue Feb 24, 2016 · 3 comments
Labels
Milestone

Comments

@NeoBokrug
Copy link

.lslm :

'string bad_string = "//\onies!";

default {
state_entry() {
llOwnerSay(bad_string);
}
}'

.lsl :

'string bad_string = "//\onies!"; // Heh, it's not showing in the comment, but trust me.

default {

state_entry() {
    llOwnerSay(bad_string);
}

}'

@raysilent
Copy link
Owner

Hey would you attach the file, it's obviously garbled here

@NeoBokrug
Copy link
Author

@raysilent raysilent added the bug label Feb 26, 2016
@RayZopf
Copy link

RayZopf commented Feb 26, 2016

also mentioned in https://code.google.com/archive/p/lslforge/issues/18 comment 4

Posted on Aug 1, 2012 by Grumpy Bird
Same/similar issue?

The string literal ";" normally becomes just ; when compiled and run in SL but LSLForge changes it in the .lsl to ";" which becomes ; in SL, altering script behavior.

Easy to avoid, but took me a while to figure out what's going on

@raysilent raysilent added this to the 0.1.9.1 milestone Nov 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants