Permalink
Browse files

trying to re-post

  • Loading branch information...
1 parent 303a9bb commit 103236c3c01e7b0d63de47623c4916dc5ca06dcc @dams committed Sep 16, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 _posts/2013-09-17-p5-mop.markdown
@@ -79,7 +79,7 @@ Here is the classical point example from the [p5-mop test suite](https://github.
use mop;
class Point {
- has $!x is ro = 0;
+has $!x is ro = 0;
has $!y is ro = 0;
method set_x ($x) {
@@ -155,6 +155,7 @@ use `$self`. A good proportion of the code in a class is about attributes.
Being able to use them directly is great.
Other notes worth mentiong:
+
* Classes can have a `BUILD` method, as with Moose.
* A class can inherit from an other one by `extend`-ing it.
* In a inheriting class, calling the parent method is not done using `SUPER`,
@@ -493,6 +494,7 @@ you don't agree with my remarks above.
This article has been written by [Damien Krotkine](damien.krotkine.com), but these people helped
proof-reading it:
+
* Stevan Little
* Jesse Luehrs
* Toby Inkster

0 comments on commit 103236c

Please sign in to comment.