Re: What is the syntax of a reference pointer in p6?

2018-10-07 Thread ToddAndMargo via perl6-users
On 10/7/18 12:39 PM, Brad Gilbert wrote: Technically there is a way to reason about some Perl 6 features as pointers. It would probably complicate it to view it this way though. You can think about `is raw` as making it so that arguments are passed by as bare "pointers". sub foo ( $a is

Re: What is the syntax of a reference pointer in p6?

2018-10-07 Thread ToddAndMargo via perl6-users
On 10/7/18 9:55 AM, Brandon Allbery wrote: He was thinking "don't make perl 5 as incompatible with perl 4". Pass-by-reference objects make for a major change to the language's behavior; it and its consequences are a large part of why perl 6 is incompatible with perl 5. Hi Brandon, I am glad

Re: What is the syntax of a reference pointer in p6?

2018-10-07 Thread Brad Gilbert
Technically there is a way to reason about some Perl 6 features as pointers. It would probably complicate it to view it this way though. You can think about `is raw` as making it so that arguments are passed by as bare "pointers". sub foo ( $a is raw ) { $a = 42; } my $b =

Re: What is the syntax of a reference pointer in p6?

2018-10-07 Thread Brandon Allbery
He was thinking "don't make perl 5 as incompatible with perl 4". Pass-by-reference objects make for a major change to the language's behavior; it and its consequences are a large part of why perl 6 is incompatible with perl 5. On Sun, Oct 7, 2018 at 4:29 AM ToddAndMargo via perl6-users <

Re: What is the syntax of a reference pointer in p6?

2018-10-07 Thread ToddAndMargo via perl6-users
On 10/6/18 3:20 AM, JJ Merelo wrote: No, we don't have that in Perl 6, explicitly so. Hi JJ, Yippee ! P6 is a wonderful clean up of P5. I hated having to send arrays to subroutines as pointers. What was Larry thinking !?!?!? ( He has redeemed himself 1000+ times over with P6.) -T

Re: What is the syntax of a reference pointer in p6?

2018-10-06 Thread JJ Merelo
El sáb., 6 oct. 2018 a las 12:16, ToddAndMargo via perl6-users (< perl6-users@perl.org>) escribió: > On 10/6/18 2:01 AM, JJ Merelo wrote: > > I don't know exactly what you mean by a reference pointer. If you mean a > > pointer, there's no such thing as a pointer, although there is some way > > to

Re: What is the syntax of a reference pointer in p6?

2018-10-06 Thread ToddAndMargo via perl6-users
On 10/6/18 2:01 AM, JJ Merelo wrote: I don't know exactly what you mean by a reference pointer. If you mean a pointer, there's no such thing as a pointer, although there is some way to represent pointers in the NativeCall interface (which is properly Rakudo)

Re: What is the syntax of a reference pointer in p6?

2018-10-06 Thread JJ Merelo
I don't know exactly what you mean by a reference pointer. If you mean a pointer, there's no such thing as a pointer, although there is some way to represent pointers in the NativeCall interface (which is properly Rakudo) https://docs.perl6.org/language/traits#index-entry-CPointer. There are no