[perl #131324] Inheriting from lexical classes seems borked

2017-07-07 Thread jn...@jnthn.net via RT
On Thu, 18 May 2017 15:19:26 -0700, c...@zoffix.com wrote: > To the best of my knowledge: > > On Thu, 18 May 2017 03:52:42 -0700, elizabeth wrote: > > Should this work? If not, why not? > > No, because the symbol is lexical to the compunit. It's the same as > how you won't be able > to access sub

[perl #131324] Inheriting from lexical classes seems borked

2017-07-07 Thread jn...@jnthn.net via RT
On Thu, 18 May 2017 15:19:26 -0700, c...@zoffix.com wrote: > To the best of my knowledge: > > On Thu, 18 May 2017 03:52:42 -0700, elizabeth wrote: > > Should this work? If not, why not? > > No, because the symbol is lexical to the compunit. It's the same as > how you won't be able > to access sub

Re: [perl #131324] Inheriting from lexical classes seems borked

2017-05-18 Thread Lloyd Fournier via RT
FWIW theoretically you get at any 'my' symbol in another module through the compunit interface by getting the CompUnit::Handle and using the '.unit' method to get the top lexpad of the loaded module. On Fri, May 19, 2017 at 8:20 AM Zoffix Znet via RT < perl6-bugs-follo...@perl.org> wrote: > To

Re: [perl #131324] Inheriting from lexical classes seems borked

2017-05-18 Thread Lloyd Fournier
FWIW theoretically you get at any 'my' symbol in another module through the compunit interface by getting the CompUnit::Handle and using the '.unit' method to get the top lexpad of the loaded module. On Fri, May 19, 2017 at 8:20 AM Zoffix Znet via RT < perl6-bugs-follo...@perl.org> wrote: > To

[perl #131324] Inheriting from lexical classes seems borked

2017-05-18 Thread Zoffix Znet via RT
To the best of my knowledge: On Thu, 18 May 2017 03:52:42 -0700, elizabeth wrote: > Should this work? If not, why not? No, because the symbol is lexical to the compunit. It's the same as how you won't be able to access subs or `my` constants or variables, unless you make them `our` or export th

[perl #131324] Inheriting from lexical classes seems borked

2017-05-18 Thread Zoffix Znet via RT
To the best of my knowledge: On Thu, 18 May 2017 03:52:42 -0700, elizabeth wrote: > Should this work? If not, why not? No, because the symbol is lexical to the compunit. It's the same as how you won't be able to access subs or `my` constants or variables, unless you make them `our` or export th

[perl #131324] Inheriting from lexical classes seems borked

2017-05-18 Thread via RT
# New Ticket Created by Elizabeth Mattijsen # Please include the string: [perl #131324] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131324 > Should this work? If not, why not? What would be the way to inherit from lexic