Re: Memory usage

2017-07-20 Thread Gabor Szabo
On Thu, Jul 20, 2017 at 12:37 PM, Timo Paulssen wrote: > On 19/07/17 21:52, Gabor Szabo wrote: >> Hi, >> >> is it possible to get the size of memory used by the current Perl 6 >> process? (From inside the code) >> Is it possible to get the size of the individual variables? >> >>

Re: Why is my class rejecting new()?

2017-07-20 Thread Richard Hainsworth
Futher to Timo's explanation, below is a rewrite of your code to consider. The documentation reference is https://docs.perl6.org/language/classtut#Constructors class Etran { has $.dstamp is rw; has $.folio is rw; has $.ticker is rw; has $.way; # only used at

Re: Memory usage

2017-07-20 Thread Timo Paulssen
On 19/07/17 21:52, Gabor Szabo wrote: > Hi, > > is it possible to get the size of memory used by the current Perl 6 > process? (From inside the code) > Is it possible to get the size of the individual variables? > > Gabor I'm not aware of something cross-platform that rakudo offers for memory use

Re: Why is my class rejecting new()?

2017-07-20 Thread Timo Paulssen
On 20/07/17 11:51, Mark Carter wrote: > > I have a class definition: > > class Etran { > has $.dstamp is rw; > has $.folio is rw; > has $.ticker is rw; > has $.qty is rw; > has $.amount is rw; > has $.desc is rw; > > method new($line) { >

Why is my class rejecting new()?

2017-07-20 Thread Mark Carter
I have a class definition: class Etran { has $.dstamp is rw; has $.folio is rw; has $.ticker is rw; has $.qty is rw; has $.amount is rw; has $.desc is rw; method new($line) { my ($cmd, $dstamp, $folio, $ticker, $qty,