Name:
Anonymous
2008-08-23 20:31
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:
Anonymous
2008-08-25 15:06
>>34
Double slit experiment et al -- universe is provably non-deterministic etc get the fuck over it.