[plt-scheme] Can subclasses of editor-snips% be saved?
Yes, that's the right place, I believe.
Watch out for errors, tho. Runtime errors at that point can (silently)
wedge drscheme. So, if you see unexplicable wedges, throw in a
with-handlers to print out your error messages.
hth,
Robby
On Thu, May 29, 2008 at 9:53 PM, Danny Yoo <dyoo at cs.wpi.edu> wrote:
>> The danger here is that the user-space program may end up with instances
>> of the `my-editor-snip%' class as created in DrScheme's space.
>
> Yes, I'm seeing this behavior. Ugh.
>
>
>
>> In the past, we've hacked DrScheme by explicitly attaching modules like
>> "my-editor-snip.ss" from the DrScheme space to the user space; see
>> `to-be-copied-module-specs' in `drscheme/private/eval'. As far as I know,
>> that's still the only solution.
>
> Is there an prefered extension mechanism from the tool's end that lets me
> attach more modules to this to-be-copied-module-specs list? I believe I
> should be looking at drscheme:language:extend-language-interface and do the
> same sort of hackery that the lang/htdp-langs.ss module does with
> on-execute. I just want to make sure that this is an acceptable place to do
> the namespace-attach-module stuff.
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>