2011/8/29 G. Wade Johnson <[email protected]>: > Brett Estrade has volunteered to make a quick presentation on the Qore >language. >The basics of the Qore language will be introduced from the perspective >of a Perl programmer, include basic data structures, object oriented >capabilities, and multi-threading. Ideas for future talks regarding >Qore, Perl threading/asynchronicity, and using Qore with Perl will be >discussed by all.
http://qore.org/manual/comments/Variables.html our int $a = 1; # this is a global variable our (string $b, any $c, hash $d); # list of global variables if ($a == 1) { my int $a = 2; my (string $b, any $c); # $a, $b, and $c are local variables, # the use of which will not affect the # global variables of the same name print("local a = %d\n", $a); } print("global a = %d\n", $a); Hey, that looks exactly like the new perl 5.18 with use types! Optional strong typing with perl syntax. Love it. Just the "any" type is superfluous, and hash and list are only arguably "better" than our @ % sigils. -- Reini Urban _______________________________________________ Houston mailing list [email protected] http://mail.pm.org/mailman/listinfo/houston Website: http://houston.pm.org/
