mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-06 06:58:45 +00:00
21 lines
432 B
Text
21 lines
432 B
Text
|
|
namespace Namespace {
|
||
|
|
decl something : Unit
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace Array 'A {
|
||
|
|
decl something : Unit
|
||
|
|
// "static methods" of Array 'a class
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace Array ('A : #Copy) {
|
||
|
|
decl something : Unit
|
||
|
|
// "static methods" of Array 'a with "copyable" 'a
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace var a : Array ('A : #Copy) {
|
||
|
|
decl something : Unit
|
||
|
|
// "methods" of Array 'a (a as array instance) with "copyable" 'a
|
||
|
|
}
|
||
|
|
|
||
|
|
// ?? what to do with const/public/... methods ??
|