[Prev][Next][Index][Thread]

Re: simple method dispatch question



Jason Trenouth wrote:
...
> Ultimately, it depends on what "as" methods have been written, but by 
> default "as" will probably just return the value of obj since both:

  by default (nobody implemented ) "as" should cause a 
  "no specific method" exception. 
  [ unless we're talking about the basic primative class (e.g., <integer>,
    <character> , <symbol> , <string>). In  which case, the implementation 
    should have defined them.   User defined classes; no. ] 

  But generally it probably is a prudent thing to do add an "as" method
  that serves as the identity function toware the top of you new 
  hierarchy . :-) 


Lyman



References: