Hi
I see "new" is a generic word, with the regular behavior set as a method for 
object.I tried specializing it on other tuple class, but it didn't work.
   TUPLE: no-news field ;   : same-one ( -- t ) T{ no-news f "same one" } ;  M: 
no-news new  drop same-one ;
I expect this:
  no-news new
  ==>T{ no-news f "same one" }

But i got this:  no-news new
  ==>T{ no-news f f }

  USE: generic   \ new order
  ==> { tuple-class no-news }
  no-news \ new lookup-method
  ==> M\ no-news new
I think there's something wrong here?
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to