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 @@
|
|||
class CameraFeature =
|
||||
singleton CameraFeature
|
||||
{
|
||||
cameraMsg
|
||||
= "camera".
|
||||
}.
|
||||
= "camera";
|
||||
}
|
||||
|
||||
class MobilePhone
|
||||
{
|
||||
mobileMsg
|
||||
= "phone".
|
||||
= "phone";
|
||||
}
|
||||
|
||||
class CameraPhone :: MobilePhone
|
||||
class CameraPhone : MobilePhone
|
||||
{
|
||||
dispatch => CameraFeature.
|
||||
dispatch() => CameraFeature;
|
||||
}
|
||||
|
||||
program =
|
||||
[
|
||||
var cp := CameraPhone new.
|
||||
public program()
|
||||
{
|
||||
var cp := new CameraPhone();
|
||||
|
||||
console writeLine(cp cameraMsg).
|
||||
console writeLine(cp mobileMsg).
|
||||
].
|
||||
console.writeLine(cp.cameraMsg);
|
||||
console.writeLine(cp.mobileMsg)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,26 +1,26 @@
|
|||
import system'dynamic.
|
||||
import system'dynamic;
|
||||
|
||||
class CameraFeature
|
||||
{
|
||||
cameraMsg
|
||||
= "camera".
|
||||
= "camera";
|
||||
}
|
||||
|
||||
class MobilePhone
|
||||
{
|
||||
mobileMsg
|
||||
= "phone".
|
||||
= "phone";
|
||||
}
|
||||
|
||||
class CameraPhone =
|
||||
singleton CameraPhone
|
||||
{
|
||||
new = MobilePhone new; mixInto(CameraFeature new).
|
||||
}.
|
||||
new() = new MobilePhone().mixInto(new CameraFeature());
|
||||
}
|
||||
|
||||
program =
|
||||
[
|
||||
var cp := CameraPhone new.
|
||||
public program()
|
||||
{
|
||||
var cp := CameraPhone.new();
|
||||
|
||||
console writeLine:(cp cameraMsg).
|
||||
console writeLine:(cp mobileMsg).
|
||||
].
|
||||
console.writeLine(cp.cameraMsg);
|
||||
console.writeLine(cp.mobileMsg)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue