Hi,
I want to override a generic method, but I'm doing something wrong. The
generic is defined this way:
GENERIC: execute-statement* ( statement type -- )
There's already a defined method:
M: object execute-statement* ( statement type -- )
drop query-results dispose ;
I want to override this method:
M: mysql-statement execute-statement* ( statement type -- )
drop do-mysql-statement ;
But this doesn't work, the first definition is used.
The method is defined:
( scratchpad ) mysql-statement implementors .
{
query-results
dispose
bind-statement*
execute-statement*
prepare-statement
}
( scratchpad ) mysql-statement \ execute-statement* method .
mysql-statement=>execute-statement*
But it's not the effective method:
( scratchpad ) mysql-statement \ execute-statement* effective-method .
object=>execute-statement*
Isn't mysql-statement's method more specific for mysql-statement class than
object's one ?
Thanks
--
Alfredo Beaumont Sainz
http://www.alfredobeaumont.org/blog.cgi
-------------------------------------------------------------------------
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