about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-04-11 16:18:00 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-04-11 16:20:01 -0700
commit5c12cd72f4774af8ca1c3c9c0115b4b1a72404bb (patch)
tree6e6982510b2cb091ed01f3072841fadd18691460 /src/rt/rust_kernel.cpp
parent9fda1578a219a8762fadddfd37c45abdd6a271a1 (diff)
downloadrust-5c12cd72f4774af8ca1c3c9c0115b4b1a72404bb.tar.gz
rust-5c12cd72f4774af8ca1c3c9c0115b4b1a72404bb.zip
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/ )
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions