Now, mods cannot be redeclared as they're just items as others (funcs, structs, etc.)
Anyway, sometimes it can be convenient to "add" something to existent mod.
I propose this syntax:
party mod a {
func foo {}
}
party mod a {
func bar {}
}
As a result, we got a one mod a which includes both func foo and func bar.
This is pretty much like what C++ does.
Now,
mod
s cannot be redeclared as they're just items as others (func
s,struct
s, etc.) Anyway, sometimes it can be convenient to "add" something to existentmod
. I propose this syntax:As a result, we got a one
mod a
which includes bothfunc foo
andfunc bar
. This is pretty much like what C++ does.