develooper Front page | perl.perl6.users | Postings from January 2020

Re: stolen uint's

Thread Previous | Thread Next
Trey Harris
January 28, 2020 23:38
Re: stolen uint's
Message ID:
On Tue, Jan 28, 2020 at 18:09 ToddAndMargo via perl6-users <> wrote:

> Observer effect (physics)
>      In physics, the observer effect is the theory that
>      the mere observation of a phenomenon inevitably
>      changes that phenomenon ... An especially unusual
>      version of the observer effect occurs in quantum
>      mechanics, as best demonstrated by the double-slit
>      experiment
> Seems Quantum theory has come to Raku, only we call it "unboxing".

As I wrote in your Raku/problem-solving issue (#154), your question is not
well-formed. A native value has no metadata, so how can it have a type? Any
experience at all with a language with pointer arithmetic should make this

And you issue doesn’t seem to be with unboxing—as far as I can tell, you’re
unboxing (assigning to a native) just fine, it’s the autoboxing that’s
giving you fits.

If you can show a language that can do what you want—whether it’s a
`typeof` equivalent or a binary data validity checker or a magic number
heuristic or something else, then we may be able to help you, but right now
you seem to be asking for something akin to wanting to know what color the
bits in your uint32 are—it’s not a question with meaning.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About