[DGD] Re: Virtual Objects (2)

Erwin Harte harte at xs4all.nl
Mon Dec 10 04:57:29 CET 2001


On Mon, Dec 10, 2001 at 04:20:24AM +0100, Arnau Rossell? Castell? wrote:
> > So, you could do something like check for the existence of a file 
> > corresponding to the first argument passed into compile_object.  If a file 
> > didn't exist, you could pass the argument off to another daemon that could 
> > generate an appropriate object for the name specified and return it back 
> > into compile_object() (which would then do whatever it needed to with the 
> > object, before returning it).  I *think* this object could even be a clone.  
> 
> You mean redefining compile_object in the auto object? I think this would return
> the right object, but with the wrong name, for example if you try compile_object
> ("/foo/bar") and /foo/bar.c exists, there would be no problem, but if it 
> doesn't exist, it would return some object, but the object returned would be 
> called "/foo/bing#345" or something like that. Is there a way around that?

You will have to redefine object_name() and find_object() as well and
store in a daemon-object which virtual name corresponds with what real
object, so that you can find the right one.

Erwin.
-- 
Erwin Harte <harte at xs4all.nl>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list