struct Test{
int $a;
sub a( $this, int $new ){
$a = $new;
}
}
Test test;
# following are equivalent
test.a(5);
test.a = 5;
The way that Perl6 handles public/private data, will also be included.
class Test{
$a is readonly;
$b is rw;
}
Computer language that takes many ideas from Perl6 and some from D. I am planning on having it compiled in a similar way to D but have it be a higher level language.
struct Test{
int $a;
sub a( $this, int $new ){
$a = $new;
}
}
Test test;
# following are equivalent
test.a(5);
test.a = 5;
class Test{
$a is readonly;
$b is rw;
}