func say($s) { echo $s, "\n"; }
class :open Thing {
var :pub=r :priv=rw $thing;
func :pub :pure hai() {
return func () { say "Hai."; }
}
func :priv die() { die(); }
}
class :open Thing {
func hai() {}
}
class :open String {
func :pub :uses=$var makeAwesome() {
$var = "Awesome!"; # Or somesuch.
}
func __toInt() {
return 5;
}
}
Thing::hai()();
(new String("Hai!") == "Hai")
say "Lol"->makeAwesome(); # "Awesome!"
say "Num" + 5; # "10"
Name:
Anonymous2008-08-25 16:00
>>37
Uhhhhh except that's not true at all, since in Quantum Mechanics, the term observe has a different meaning to in the Classic lexicon. All double-slit proves is that we poke things when we measure them.