This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
9 lines
118 B
Rust
9 lines
118 B
Rust
|
|
|
|
|
|
// -*- rust -*-
|
|
obj x() {
|
|
fn hello() { log "hello, object world"; }
|
|
}
|
|
|
|
fn main() { let mx = x(); mx.hello(); }
|