Including other scripts?

16 views
Skip to first unread message

Andy L

unread,
Sep 5, 2009, 8:30:33 PM9/5/09
to JSTalk Dev
Another question: are there any facilities in place for including
other scripts/modules?

For my purposes, it could be something basic, like:
load("file.js");
...to evaluate a file with function definitions.

Thank you.

Gus Mueller

unread,
Sep 6, 2009, 2:57:58 PM9/6/09
to jstal...@googlegroups.com


There ins't currently, but that's a good idea.

thanks,

-gus

--

August 'Gus' Mueller
Flying Meat Inc.
http://flyingmeat.com/

Andy

unread,
Sep 6, 2009, 11:27:33 PM9/6/09
to jstal...@googlegroups.com
Gus, don't know if it helps, but JavaScriptCore has a load() function:

-Andy

Gus Mueller

unread,
Sep 6, 2009, 11:56:51 PM9/6/09
to jstal...@googlegroups.com
Well holy heck- that's new to 10.6, isn't it? I hadn't seen jsc
before. Awesome.

-gus

Andy

unread,
Sep 6, 2009, 11:58:44 PM9/6/09
to jstal...@googlegroups.com
Leopard has it, too :)
Reply all
Reply to author
Forward
0 new messages