This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Using macros in applets
On Wed, 7 Feb 2007, Per Bothner wrote:
> Kjetil Svalastog Matheussen wrote:
> > I forgot that I can't get load to work either, because if access denied,
> > which I don't know how to solve.
>
> Applets (at least as normally configured) can't read local files.
> That that would be a pretty bad security flaw.
>
> You could perhaps:
> (load "http://originating-site/.....scm")
>
Yeah, I tried that too actually, but access denied. (The file is open
though)
> For Kawa, require is preferred to load, since require is handled
> partly at compile-time, so it allows proper modularity.
>
> > But using some script to clash all sourcefiles into one before compiling to
> > an applet would anyhow be the most practical.
>
> Why do that?
Why not? The applet part is the just the last step before release. While
developing I'm working inside emacs only, using frames instead of
applets.
> Just have the main applet require the other applets,
> and make sure they're all in the .jar file containing the applet.
> (Warning: I haven't tested (require ...) in combination with applets.)
>
I'll try that.