in reply to Re^2: Why not perl have raw/native type
in thread Why not perl have raw/native type

Actually, all informations are available at compile time ...

Divining that information is the topic of Escape Analysis, and its far from trivial to find what values will remain local to a subroutine in the general case.

If you want to put more restrictions on the "native" type, maybe you can make this easier, but that amounts to basically having a second set of data types that are not interoperable with the rest of Perl.

  • Comment on Re^3: Why not perl have raw/native type

Replies are listed 'Best First'.
Re^4: Why not perl have raw/native type
by LanX (Saint) on Jan 09, 2020 at 16:59 UTC
    Well, my point is that there is a difference between
    • "you can't"
    • "it is not trivial"

    Actually I'd prefer to see a use case from the OP before continuing further.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice