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

Maybe rethink the #string and #list syntax? #1

Open
furroy opened this issue Dec 17, 2018 · 1 comment
Open

Maybe rethink the #string and #list syntax? #1

furroy opened this issue Dec 17, 2018 · 1 comment

Comments

@furroy
Copy link

furroy commented Dec 17, 2018

The Firestorm preprocessor already uses #var to convert it to a string. Example:

#define OS(a) llOwnerSay(#a)

Os(1234);

So maybe you want to use a different character? Interesting project. I will keep an eye on it. But I use LSL Forge primarily for the //pragma inline which I often can't live without!

-Levio Serenity

@riej
Copy link
Owner

riej commented Dec 18, 2018

Thank you!
I have no target to make syntax Firestorm-compatible, but i will make inline functions later, and remove this #var syntax for length.
I plan to add methods for structures and internal types. To replace llListFindList(lA, lB) with lA.find(lB), for example. So #string and #list could be replaced with string.length() and list.length(). Those methods for internal types will be defined in own file as inline functions, so you can replace them later and add new by your wish.
Right now i work on source code clean-up and optimizations, then will make optimized LSL output, and this feature is third in my to-do list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants