[REBOL] where tool (was Re: keymap in text style feel/engage)
From: dockimbel::free::fr at: 27-Apr-2002 18:51
Hi Anton,
Anton wrote:
[...]
> > > > Two words were not defined after I did this:
> > > > - view* (it's easy, system/view)
>
> > I don't think so, 'view* is defined in ctx-text.
>
> Yeah, but:
>
> >> ctx-text/view* == system/view
> == true
That's right. I should have guessed it :
view* <=> reference on 'view object in C style :P
> On the circular reference issue:
> To prevent circular references, I maintain
> a list of the paths that have already been checked.
> We will see if we can find each new path in the list.
> If found, then we don't do it again.
> If not found, we add it to the list and go into it.
Great ! I was a little reluctant to use a block to store
all the visited paths, because i was afraid it would eat too
much memory...After using your version, i'm now convinced it's
worth the extra 1Mb of memory it consumes. ;-)
[...]
> A bit of testing from you guys out there and next
> we should make a gui frontend for it. FX5 should maybe
> incorporate it into RebSearch to extend the reach of
> this cool rebol searching tool.
>
I've added a GUI interface (auto-switch in GUI mode if possible)
and cleaned-up things a little. Now i would like to put it in
REBOL library, unless you or anyone else want to add/modify
something ?
where tool v0.3 :
http://rebol.dhs.org/where.r
Enjoy,
-DocKimbel.