Re: Union

2016-04-12 Thread JuhiMarcel LangbroekTimmerman
Hi David, Thanks very much for your code, I will try it when I get home at the end of the week although I only have little endian Intell chips. I will have to look around for others. Btw, are there still chips storing big endian paired in two bytes? So your example number would become 0x23,

Re: Blobs and IEEE floating point

2016-04-19 Thread JuhiMarcel LangbroekTimmerman
Hi Kevin I've made something up for the time being. You can find it in the BSON module. Look for the file lib/Document.pm6 and the subs encode-double and decode-double. This code must be rewritten though for speed but at least it works. Marcel P.s. I've seen that not all comments in the

Re: RFE: throw an error on a single "="when used in an "if"

2017-03-18 Thread JuhiMarcel LangbroekTimmerman
Hi, This is the same behaviour you can find in perl5 and is not a flaw. It is an assignment just before testing. So $x gets the value of $y and then test which becomes True. This can also be very covenient when e.g calling a sub, then assign to a value then test like below in a while;

Re: Fwd: Re: Variables in modules

2017-03-13 Thread JuhiMarcel LangbroekTimmerman
now we are at it, for readability perhaps instead of substitutes do, my $thevalue = $?FILE.IO.basename; Marcel On March 10, 2017 10:32:43 PM Theo van den Heuvel wrote: Not with me it doesn't. my $TheValue = $?FILE.subst(/.* "/"/, "", :g); sub sayfn is export {

Re: thread behavior

2017-09-04 Thread JuhiMarcel LangbroekTimmerman
Hi liz, Thanks for your anwer. I assume there are a few things I can rely on; - the main thread is where the code starts and will always have id 1 - a continuation of statements/blocks will always be excecuted on the same thread except for those hyper thingies which are again separate blocks or