Re: order of execution

2019-10-22 Thread Marcel Timmerman
Thanks everyone, I wonder, should I file an issue at rakudo's? Marcel Programs are compiled in memory, it just isn't written out to disk. On Mon, Oct 21, 2019 at 3:33 AM Marcel Timmerman > wrote: @yary Thanks for your answer. I've done it too and saw the sa

Re: order of execution

2019-10-21 Thread Brad Gilbert
Programs are compiled in memory, it just isn't written out to disk. On Mon, Oct 21, 2019 at 3:33 AM Marcel Timmerman wrote: > @yary > > Thanks for your answer. I've done it too and saw the same kind of result. > But then I thought I've read it somewhere that programs are not compiled, > only mod

Re: order of execution

2019-10-21 Thread Marcel Timmerman
@yary Thanks for your answer. I've done it too and saw the same kind of result. But then I thought I've read it somewhere that programs are not compiled, only modules. So I must write a module to check it. But if anyone knows, it would be faster ;-) Regards, marcel On 20-10-2019 22:59, yar

Re: order of execution

2019-10-20 Thread yary
Seems like we can answer "Is it also true when compiling?" by putting the REPL code into a file! $ cat order-execution.raku class Y { method y (Int $y) {note $y}} my Y $y .= new; sub b (Int $i --> Int) { note "about to increment i above $i"; $i + 10 } say b(10); say $y.?y(b(11)); say $y.?unde

order of execution

2019-10-20 Thread Marcel Timmerman
Hello all, I've a small question where I want to know what is processed first in the following line $my-object.?"my-method"(some-complex-argument-calculation()) Will the sub 'some-complex-argument-calculation()' always be run even when 'my-method' is not available because the sub must be e