Hi all,

I added a new feature to the parser. Some might recall its a rehashing
of something that used to be around in earlier releases, but its back
and better than ever now.

So I create a vocabulary, but it doesn't have a USING: form, or the
USING: form is incomplete.

I tell Factor to begin reading my mind:

( scratchpad ) do-what-i-mean? on

I load the vocabulary:

( scratchpad ) "scroll-test" reload
Loading resource:work/scroll-test/scroll-test.factor

Factor automatically invokes all restarts where there is only one
possible word; if there are two vocabs having words with the same
name, you still have to pick. But here's the kicker, after the file is
loaded, you get the following message in the listener:

Restarts were invoked adding vocabularies to the search path.
To avoid doing this in the future, add the following USING:
and IN: forms at the top of the source file:

USING: accessors arrays colors kernel math math.geometry.rect
math.vectors namespaces sequences ui ui.gadgets
ui.gadgets.grids ui.gadgets.scrollers ui.gestures ui.render ;
IN: scroll-test

:warnings - print 1 semantic warnings.

W00t! Now you can copy and paste that USING: form into your file, and
disable DWIM mode:

( scratchpad ) do-what-i-mean? off

Note that even without DWIM mode, you get the USING: form printed if
you invoke at least one restart.

One thing I still need to fix is that if you do refresh-all, there is
no way to invoke restarts.

Slava

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to