Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Evaluating LSL from a string

Fiona Fielding
Registered User
Join date: 21 Jun 2005
Posts: 24
01-10-2006 03:15
Is there any way to evaluate and run a string as if it was LSL similar to the PHP eval() function.

I'm guessing no due to the scripts having to be complied, but no harm in checking.
Myspoonistoobig Laxness
Registered User
Join date: 3 Nov 2005
Posts: 15
01-10-2006 05:32
No, there isn't

and a quick search brings up some debate on how there probably won't be / how it would be hard / resource intensive to do :)
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
01-11-2006 15:23
One of the main reasons that Perl could even have a command like that is because it is an interpreted language -- It isn't pre-compiled and run in a lower-level language.

LSL, on the other hand, is a compiled language -- It is pre-compiled and run in a lower-level language (soon to be CIL/CIS). So, a function like eval() would have to
#1. Be written in LSL or
#2. Be a server function, like llGetAgentData()