518dc52f85
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
13 lines
198 B
Rust
13 lines
198 B
Rust
|
|
|
|
|
|
// -*- rust -*-
|
|
mod inner {
|
|
mod inner2 {
|
|
fn hello() { log "hello, modular world"; }
|
|
}
|
|
fn hello() { inner2::hello(); }
|
|
}
|
|
|
|
fn main() { inner::hello(); inner::inner2::hello(); }
|