Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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

by Corion (Pope)
on Jan 09, 2020 at 08:57 UTC ( #11111233=note: print w/replies, xml ) Need Help??

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 (Cardinal) 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11111233]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2020-11-27 03:39 GMT
Find Nodes?
    Voting Booth?

    No recent polls found