commit | 5c12cd72f4774af8ca1c3c9c0115b4b1a72404bb | [log] [tgz] |
---|---|---|
author | Tim Chevalier <[email protected]> | Wed Apr 11 23:18:00 2012 |
committer | Tim Chevalier <[email protected]> | Wed Apr 11 23:20:01 2012 |
tree | 6e6982510b2cb091ed01f3072841fadd18691460 | |
parent | 9fda1578a219a8762fadddfd37c45abdd6a271a1 [diff] |
Allow classes to implement ifaces Introduce syntax like: iface animal { ... } class cat implements animal { ... } to allow classes to implement ifaces. Casting classes to ifaces is *not* yet supported. ifaces that a class implements are not yet included in metadata. The syntax is subject to change, and may go away completely if we decide to use duck typing to relate classes with ifaces (see http://smallcultfollowing.com/babysteps/blog/2012/04/10/declared-vs-duckish-typing/ )