Thanks!

On Tue, Apr 17, 2018 at 11:03 AM, JJ Merelo <jjmer...@gmail.com> wrote:

>
>
> 2018-04-17 10:50 GMT+02:00 Fernando Santagata <nando.santag...@gmail.com>:
>
>> Hi,
>> I'm experimenting with Blob(s) and I'm under the impression that I don't
>> understand how they work.
>>
>> The documentation for the allocate() method (
>> https://docs.perl6.org/type/Blob#method_allocate) reads:
>>
>> Returns a newly created Blob object with the given number of elements.
>>>
>>
>> but when I try it in the REPL, I get strange results:
>>
>> > my Blob $b0.allocate(10, 0
>>
>
> I think this should be  my Blob $b0 = Blob.allocate(10,0)
>
> Then:
> > $b0.^name
> Blob
> > $b0.bytes
> 10
>
> JJ
> PS: Please send your question to StackOverflow too, if possible.
>



-- 
Fernando Santagata

Reply via email to