On 10/8/18 5:33 AM, Curt Tilmes wrote:


On Mon, Oct 8, 2018 at 7:53 AM ToddAndMargo via perl6-users <perl6-us...@perl.org <mailto:perl6-us...@perl.org>> wrote:

    I take it that `Buf` is a special type of array that the normal
    rules do not apply to.


I would say rather than each of them (Buf and Array) are special types of Positional -- they 'do' the Positional role -- That role implies certain behaviors that they both implement (among many other types/roles).  That includes support for [] indexing and for @$var looping.  They each also have special behaviors beyond the Positional stuff.

Curt

Hi Curt,

Makes sense, thank you!

I added @$var to my notes, so I won't miss it again.

-T

Reply via email to