new primitive

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Hi George,

I just discovered [primitive: link] and got curious...

What is the purpose of this new mystery function? :)
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

link takes a string, parses it as a piece of script code, and returns the script.

For example,

(link "(a b c d)")

returns the list,

(a b c d)

In practice it is not very useful, since you can get the same result with (list) and other techniques. It is used internally to load stored scripts. For example, the script contained inside <Events> is "linked" to convert into something that can be eval'ed.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

o.O

Now that will come in very handy... The DockScreen Framework is full of stored scripts, so perhaps this will simplify some things... must look into this one day.

Thanks! :)
Post Reply