09:39 sibl joined 10:19 david7832 joined 10:33 sibl left
david7832 In the TWEAK and BUILD submethods of a subclass, how can I access attributes of the parent class? I can't seem to find a way by experimenting with `self.` and the FQN. 10:40
My specific use case: I want to inherit from Math:Matrix to build a subclass (Möbius transformations) of 2x2 Complex matrices with nonzero determinant that also have a CALL-ME method (so that `subset` seems not to be an option).
(Using the trait `handles` instead of inheritance would of course be an alternative here, but I also have a general interest in this.)
lizmat sub classes can only access public attributes through the accessor interface 10:48
m: class A { has $.a = 42 }; class B is A { method b() { $.a } }; say B.new.a
42
hmmm.. looks like we lost both camelia and evallabla
*evallable
david7832 thanks, that helps. So it all comes down to what the parent class exposes. 11:05
11:39 david7832 left 12:17 sibl joined 12:38 sibl left, sibl joined 13:16 _huggable left 14:05 KOTP left, greenfork left, cpli left 14:11 greenfork joined 14:12 cpli joined 14:16 KOTP joined 15:47 david7832 joined 15:55 david7832 left 15:56 david7832 joined 16:37 habere-et-disper joined 16:46 sibl left 17:01 habere-et-disper left, habere-et-disper joined 17:03 habere-et-disper left 17:10 habere-et-disper joined 18:29 habere-et-disper left 18:46 habere-et-disper joined 19:17 sibl joined 19:24 sibl left 19:41 sibl joined 20:00 habere-et-disper left 20:08 notna joined 20:24 sibl left 21:07 habere-et-disper joined 21:14 notna left 21:49 habere-et-disper left 22:51 david7832 left