News for hackers. Stuff that matters.
Re:Age discrimination in Perl 6 using subsets and multiple d... by Hexstream on Sunday August 22, 2010 @01:38PM (#1624920)
1. The values of :after methods are ignored. 2. You're calling person-age from within the method so you enter infinite recursion.

What you were looking for is:

  (defmethod person-age :around ((someone person))
    (let* ((age (call-next-method))
	   (category (if (< age 16) 
		         :child
		         (if (>= age 66)
			     :senior
			     :adult))))
       (values age category)))
Re:Age discrimination in Perl 6 using subsets and multiple d... by mahmud on Sunday August 22, 2010 @01:42PM (#1624931)
yeah, I am on a pristine box without slime; and those written after a few beers late at night.