Re: Default args in custom constructor

2015-09-05 Thread Philip Hazelden
Oh, I'd been intending to explore that before sending but forgot. Thanks. I currently think that's the best alternative to duplicating defaults, but still more verbose and less intuitive than I'd hope for. On Sat, Sep 5, 2015 at 12:57 AM Timo Paulssen wrote: > Have you considered hash flattenin

Re: bufs and utf8

2015-09-05 Thread Aristotle Pagaltzis
* mt1957 [2015-08-31 19:35]: > I can not do the following; > my Buf $b = 'abc'.encode; > Type check failed in assignment to '$b'; expected 'Buf' but got 'utf8' > > But I can do this; > my Buf $b = 'abc'.encode ~ Buf.new(); > Buf:0x<61 62 63> > > Does the concatenation convert utf8 into Buf? Will t