Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

r11754: MAYBE_FLAT deprecated?

0 views
Skip to first unread message

Audrey Tang

unread,
Mar 13, 2006, 12:08:06 PM3/13/06
to Chip Salzenberg, p6i
Hi Chip,

In r11754, you had deprecated the use of the MAYBE_FLAT flag, but there
is no mention of this in the commit log.

Consider this Perl 6 snippet:

foo(@x, @y);
sub foo (@x, @y) { }

versus:

foo(@x, @y);
sub foo (*@z) { }

how should I emit the call for foo() without knowing about &foo's
signature before hand, without triggering the deprecation?

Thanks,
Audrey

signature.asc

Chip Salzenberg

unread,
Mar 13, 2006, 2:07:17 PM3/13/06
to Audrey Tang, p6i
On Tue, Mar 14, 2006 at 01:08:06AM +0800, Audrey Tang wrote:
> In r11754, you had deprecated the use of the MAYBE_FLAT flag, but there
> is no mention of this in the commit log.

I just thought nobody was using it; braino. I didn't intend it to go away
until we had gone through a public discussion to catch any users who weren't
in the core tree.

Consider it undeprecated, I'll update the docs (and consider how to describe
it so it doesn't sound like something that should be deprecated).
--
Chip Salzenberg <ch...@pobox.com>

Chip Salzenberg

unread,
Mar 13, 2006, 6:43:09 PM3/13/06
to Audrey Tang, p6i
Audrey, I just committed the below to pdd03 because I think it'll work for
Pugs. What say?

6 MAYBE_FLAT
If this bit is set on a PMC value, and:
(a) the PMC is either an aggregate or a scalar containing a
reference to an aggregate, and
(b) the target register has the SLURPY bit set,
then pass the PMC value as a list of values, in these ways:
(a) if the value is an array, pass its elements in the normal
way (FLAT style);
(b) if the value is a hash, pass its elements as a list of
key/value pairs contained in HLL-specific 'pair' PMCs.
The meaning of this bit is undefined when applied to integer,
number, and string values. It may not be combined with the
NAMED bit.

Note the "HLL-specific" clause, which allows Pugs and other HLLs to differ
on what the ideal 'pair' PMC is.
--
Chip Salzenberg <ch...@pobox.com>

Audrey Tang

unread,
Mar 14, 2006, 7:38:56 AM3/14/06
to Chip Salzenberg, p6i
Chip Salzenberg wrote:
> Audrey, I just committed the below to pdd03 because I think it'll work for
> Pugs. What say?

Say sane. Thanks!

Audrey

signature.asc
0 new messages