Re: RFC 212 (v1) Make length(@array) work

2000-09-20 Thread Bart Lateur
On Tue, 19 Sep 2000 07:40:07 -0700 (PDT), Dave Storrs wrote: Doesn't this reflect C's idea of "a string is an array of characters"? Which isn't the idea behind strings in Perl. The basic idea is wrong. Therefore, making length(@array) work, would be a wrong signal. I personally do not

Re: RFC 212 (v1) Make length(@array) work

2000-09-20 Thread Tom Christiansen
What I said was: making length(@array) "work" would be catering to novice people *coming from C*. We shouldn't. Not that much. In Perl, a string is not an array. I'm pretty sure it's not just the people coming from C who expect this. This all points to the bug^H^H^Hdubious feature which is the

Re: RFC 153 (v2) New pragma 'autoload' to load functions and modules on-demand

2000-09-20 Thread Jonathan Scott Duff
On Wed, Sep 20, 2000 at 04:15:13AM -, Perl6 RFC Librarian wrote: =head2 The Basics The new Cautoload pragma would rely on an Cautoload.conf file that was located in C@INC and looked something like this: What happens when there are multiple Cautoload.conf files in C@INC? A custom one

Re: RFC 153 (v2) New pragma 'autoload' to load functions and modules on-demand

2000-09-20 Thread Tom Christiansen
This will make programs highly nonportable. You can't easily know what modules they really need. --tom

Re: RFC 212 (v1) Make length(@array) work

2000-09-20 Thread Dave Storrs
On Wed, 20 Sep 2000, Bart Lateur wrote: The argument against my reasoning would be if the bulk of people making this mistake are *not* coming from C. I don't know. I have a feeling we're either arguing the same side without realizing it, or we're just having a straight-up

Re: RFC 212 (v1) Make length(@array) work

2000-09-20 Thread Bart Lateur
On Wed, 20 Sep 2000 07:03:33 -0600, Tom Christiansen wrote: I'm pretty sure it's not just the people coming from C who expect this. Uh-oh. This all points to the bug^H^H^Hdubious feature which is the sub($) context template as applied to named arrays and hashes. Requiring an explicit

Re: RFC 212 (v1) Make length(@array) work

2000-09-20 Thread Randal L. Schwartz
"Bart" == Bart Lateur [EMAIL PROTECTED] writes: Bart So length is already picky on what it accepts. You need to turn it into Bart print length(scalar(@a, 'this is a string')); Bart to get perl to accept it. And then what it's accepting is the scalar-comma operator, giving you the length of