Re: Dual Buf and Str question

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/11/22 02:28, ToddAndMargo via perl6-users wrote: On 6/9/22 22:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily  get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string

Re: Dual Buf and Str question

2022-06-11 Thread ToddAndMargo via perl6-users
On 6/9/22 22:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily  get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I can think o

Re: Dual Buf and Str question

2022-06-10 Thread ToddAndMargo via perl6-users
On 6/10/22 02:36, Elizabeth Mattijsen wrote: On 10 Jun 2022, at 11:20, ToddAndMargo via perl6-users wrote: On 10 Jun 2022, at 07:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily get away with this in Modula2, but how can I do this with Raku? I wish to create a single variabl

Re: Dual Buf and Str question

2022-06-10 Thread Elizabeth Mattijsen
> On 10 Jun 2022, at 11:20, ToddAndMargo via perl6-users > wrote: > >>> On 10 Jun 2022, at 07:54, ToddAndMargo via perl6-users >>> wrote: >>> >>> Hi All, >>> >>> I can easily get away with this in Modula2, but >>> how can I do this with Raku? >>> >>> I wish to create a single variable that

Re: Dual Buf and Str question

2022-06-10 Thread ToddAndMargo via perl6-users
On 10 Jun 2022, at 07:54, ToddAndMargo via perl6-users wrote: Hi All, I can easily get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I

Re: Dual Buf and Str question

2022-06-10 Thread Elizabeth Mattijsen
Perhaps https://raku.land/zef:raku-community-modules/Pythonic::Str is what you're after? > On 10 Jun 2022, at 07:54, ToddAndMargo via perl6-users > wrote: > > Hi All, > > I can easily get away with this in Modula2, but > how can I do this with Raku? > > I wish to create a single variable th

Dual Buf and Str question

2022-06-09 Thread ToddAndMargo via perl6-users
Hi All, I can easily get away with this in Modula2, but how can I do this with Raku? I wish to create a single variable that can be manipulated in two ways: 1) as a fixed length string (Str) 2) as a fixed length buffer (Buf) I can think of ways to do this, but it would require separate varia