cbarber 93 posts since
Sep 27, 2007
2.
Re: Reload when importing a package Feb 21, 2008 7:37 AM
With a single applet instance all packages and other files will be synchronized as of the specified 'resync-as-of' time declared in the {applet ...} declaration. Setting this to a time in the future will cause content to be synchronized as of the start time of the applet:
{applet
resync-as-of = {utc-date-time "4000-01-01"}
}
To force synchronization after the applet start time, you have to resort to a hack involving importing the package through a freshly modified manifest. This is described in detail along with other synchronization issues and recommendations in the "Caching and Synchronization" chapter in the Developer's Guide, which was expanded for 6.0. The downside to this technique is that previously imported packages will not be freed from memory as long as the applet is still running.
What I would recommend is that you compile and run the code in new synchronized subapplet whenever you want to force an update without having to restart the main applet.
Regarding exceptions, the url, line and column attributes were indeed removed from the Exception class because they were only used for SyntaxError, which still retains those properties; so if you want to get a source location from an Exception you just need to type-switch it to SyntaxError first.