September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,24 +1,24 @@
|
|||
import extensions.
|
||||
import extensions;
|
||||
|
||||
class T
|
||||
{
|
||||
Name = "T".
|
||||
Name = "T";
|
||||
|
||||
clone = T new.
|
||||
T clone() = new T();
|
||||
}
|
||||
|
||||
class S :: T
|
||||
class S : T
|
||||
{
|
||||
Name = "S".
|
||||
Name = "S";
|
||||
|
||||
clone = S new.
|
||||
T clone() = new S();
|
||||
}
|
||||
|
||||
program =
|
||||
[
|
||||
type<T> original := S new.
|
||||
type<T> clone := original clone.
|
||||
public program()
|
||||
{
|
||||
T original := new S();
|
||||
T clone := original.clone();
|
||||
|
||||
console printLine(original Name).
|
||||
console printLine(clone Name).
|
||||
].
|
||||
console.printLine(original.Name);
|
||||
console.printLine(clone.Name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue