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

Re: stolen uint's

Thread Previous | Thread Next
From:
Trey Harris
Date:
January 28, 2020 23:38
Subject:
Re: stolen uint's
Message ID:
CALKJ+Esp6zfL-VR4s4DH8eCFHtcx7vMK-=+x8AgasjuvaOe9yg@mail.gmail.com
On Tue, Jan 28, 2020 at 18:09 ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> Observer effect (physics)
> https://en.wikipedia.org/wiki/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
clear.

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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About