develooper Front page | perl.perl5.porters | Postings from August 2016

Concise and hints high bits

Thread Next
From:
Dave Mitchell
Date:
August 17, 2016 07:50
Subject:
Concise and hints high bits
Message ID:
20160817075040.GJ3173@iabyn.com
Currently the high hints bits in nextstate ops aren't displayed very
prettily in Concise output:

    $ perl5240 -MO=Concise -e'study; use feature "fc"; study' | grep next
    2     <;> nextstate(main 1 -e:1) v:{ ->3
    5     <;> nextstate(main 74 -e:1) v:%,{,469762048 ->6

AFAIKT, when 'use feature' is in scope, bits 26..28 are used to indicate
that feature is active and what feature bundles are enabled, with the
values 0..4 indicating a feature bundle (like '5.23') and 7 indicating
feature in scope but no bundle enabled.

The current Concise output of '469762048' clearly isn't very helpful.
I propose that as a minimum, any unrecognised bits are displayed in
hex instead, i.e. as 1c000000, and preferably at least partially
symbolically. Perhaps as 'fb=0' through to 'fb=7'.



-- 
In my day, we used to edit the inodes by hand.  With magnets.

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