mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Dynamic dispatch.
This commit is contained in:
committed by
Christoffer Lerno
parent
2e498a426e
commit
b794c893d6
@@ -26,12 +26,8 @@ struct Object
|
||||
}
|
||||
}
|
||||
|
||||
static initialize
|
||||
{
|
||||
io::formatter_register_type(Object);
|
||||
}
|
||||
|
||||
fn void! Object.to_format(Object* o, Formatter* formatter)
|
||||
fn void! Object.to_format(Object* o, Formatter* formatter) @dynamic
|
||||
{
|
||||
switch (o.type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user