! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

IN: cars

TUPLE: car ;

GENERIC: move

M: car move ( -- ) "car moved" print flush ;

! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

IN: airplanes

TUPLE: airplane ;

GENERIC: move

M: airplane move ( -- ) "airplane moved" print flush ;

! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

IN: scratchpad

USING: cars airplanes ;

<airplane> move ! OK
<car> move              ! ERROR

USING: airplanes cars ;

<car> move              ! OK
<airplane> move ! ERROR

! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Currently, when a method is called the vocabulary search path is searched in 
order until a generic is found which holds a method by that name. If no 
applicable methods are in that method set, Factor errors out.

Maybe Factor should continue searching the vocabulary search path for another 
generic. It would be nice to have this be behaviour be optionally available.

Ed

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to