NativeCall and memory management

2016-08-30 Thread Gianni Ceccarelli
Hello all! I'm trying to figure out how the NativeCall interface releases memory for objects with native representation, and I could use some help. For what I can see: * CPointer never frees anything https://github.com/MoarVM/MoarVM/blob/master/src/6model/reprs/CPointer.c#L148 * CStr always fre

[perl #129142] Parse error when coercing an enum from a coercion of an enum from an int

2016-08-30 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #129142] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129142 > $ perl6 -e 'enum FF ; FF(2).perl.say' FF::two $ perl6 -e 'enum FF ; FF(FF::two).per

[perl #129143] :DEFAULT tag in "use" directive prevents import from subsequent tags

2016-08-30 Thread Brian S. Julin
# New Ticket Created by "Brian S. Julin" # Please include the string: [perl #129143] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129143 > $ cat XX.pm6 unit module XX; our sub fee() is export { } our sub fie() is export(:

Re: [perl #129142] Parse error when coercing an enum from a coercion of an enum from an int

2016-08-30 Thread Brandon Allbery
I think the problem is that there's already another syntax using that sequence: coercion types. FF(FF(2)) is being parsed as a coercion type from FF to FF(... and then it falls over because it's not expecting nested coercion types. On Tue, Aug 30, 2016 at 7:13 PM, Brian S. Julin < perl6-bugs-follo

[perl #129131] [RFC] Make .. a numeric operator, please (.say for ‘42’..‘51’)

2016-08-30 Thread Zoffix Znet via RT
On Tue Aug 30 11:46:53 2016, sml...@gmail.com wrote: > The trap comes from the fact that `..` and `...` with a Str endpoint > *don't* use .succ/.pred: > > "35".."40" # does something weird (and IMO useless) that is different > from .succ Agreed, that's weird. I'm unsure why it's counting down an

Re: [perl #129131] [RFC] Make .. a numeric operator, please (.say for ‘42’..‘51’)

2016-08-30 Thread Patrick R. Michaud
On Tue, Aug 30, 2016 at 07:00:43PM -0700, Zoffix Znet via RT wrote: > So far I think the original RFC to make .. a numeric operator is out. > There's still an issue with .. not using .succ on strings. Does anyone > know why that is the case? The templating example I presented is still > valid wi

Re: [perl #129143] :DEFAULT tag in "use" directive prevents import from subsequent tags

2016-08-30 Thread Lloyd Fournier
You have to have a comma after each tag. I think it will work if you do (can't test atm). It's def LTA that there's no syntax error. Arg parsing for use statements is LTA in general I think. LL On Wed, 31 Aug 2016 at 9:29 AM, Brian S. Julin wrote: > # New Ticket Created by "Brian S. Julin" > #

Persuasive Business Writing Workshop, SZ & SH,Oct 2016 (by John Sturtevant, Former Harvard Business School Lecturer)

2016-08-30 Thread Chris Wang
Hi There, Good Afternoon! SIS Conference is delighted to invite Mr. John Sturtevant, experienced business writer and trainer, who taught business writing courses at Harvard Business School (HBS) to address the below persuasive writing skills workshop in China. This workshop is an advanced lev

NativeCall and memory management

2016-08-30 Thread Gianni Ceccarelli
Hello all! I'm trying to figure out how the NativeCall interface releases memory for objects with native representation, and I could use some help. For what I can see: * CPointer never frees anything https://github.com/MoarVM/MoarVM/blob/master/src/6model/reprs/CPointer.c#L148 * CStr always fre