On 2020-05-17 22:28, Paul Procacci wrote:
Don't 'say' anything. Just let the optimizer spit out the QAST that you
are interested in looking at.
The following spits out a diff after optimization:
# diff -u <(perl6 --target=optimize -e '"test".IO.e') <(perl6
--target=optimize -e '"test".IO.e.Bool')
>> Huh. Not sure what I am looking at
You aren't specific. Is it the error message you received because you
used 'say' improperly or is it the QAST?
- How to use 'say' is in the documentation.
- A QAST is pretty close to an AST and I'd start there on wikipedia or
something.
I was looking for the difference between
'say if "test".IO.d', and
'say "test".IO.d.Bool'
This is were 'if" has to unscramble a "True" or
"text message" return.
But, I have no idea what all that stuff is that comes
back anyway, so I think I will give up.
Thank you for all the help!
-T