Re: there is a subtle problem doing: mySlot := obj getSlot(slotname)
Jeremy Tregunna <[email protected]> Tue, 08 Nov 2011 12:05:37 -0600
| Newsgroups | gmane.comp.lang.io |
|---|---|
| Message-ID | <[email protected]> |
On 2011-11-08, at 11:44 AM, Jan-Paul Bultmann wrote: > I didn't mean to generate type info, rather enforce it :) say you want an exception to be thrown once an object in a Slot if It doesn't respond to a protocol or something like that. > Basically contracts on slots. Ah well, yeah that's contracts. I wrote an addon for Io that implemented this years ago, but I ended up removing it since nobody was using it. Regards, Jeremy Tregunna