Hello, John!
 
I see. So those objects implementing a custom dispose are not inherited from disposable.
Thank you!
 
22.06.2016, 02:58, "John Benediktsson" <mrj...@gmail.com>:
If you notice the implementation of ``M\ object dispose``:
 
```
M: object dispose [ t >>disposed dispose* ] unless-disposed ;
```
 
That hints at a ``disposed`` slot.  Well, really that should be a method on ``disposable`` but there is one place where we take advantage of the "requirement" for a slot that tracks if it was disposed previously or not and calls ``dispose*``.
 
So basically, if you're a ``disposable`` and you have a slot that tracks "was I previously disposed or not" then you can implement ``dispose*`` otherwise, you should provide a proper implementation of ``dispose``.
 
---=====---
Александр
 
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to