Re: RFC 132 (v1) subroutines should be able to return an lvalue

[email protected] (Chaim Frenkel) 20 Aug 2000 12:04:21 -0400
Newsgroups perl.perl6.language.subs
Message-ID <[email protected]>
>>>>> "JV" == Johan Vromans <[email protected]> writes:

JV> An attribute would 

JV>   - require the sub to be consequent in what it returns;

I can't parse that line.

JV>   - require the sub to be predeclared before it can be used;

lvalueness seems to be appropropriate.

These two should have different actions.

	$foo = &foo;
	&foo = $foo;

Perl needs a value for one, and a reference for the other.

JV>   - make it unfeasable for methods.

Why? All methods for the same OO hierarchy should have the same signature.

<chaim>
-- 
Chaim Frenkel					     Nonlinear Knowledge, Inc.
[email protected]				               +1-718-236-0183