Re: RFC: Drop distinction between user-defined and built-in functions

2000-08-04 Thread Tom Christiansen
>As my example demonstrated, it's because there's no run-time >application of content coercion templates. And I don't think s/ent/ext/

Re: RFC: Drop distinction between user-defined and built-in functions

2000-08-04 Thread Tom Christiansen
>Tom Christiansen wrote: >> > I think it's critical that built-ins be reference-takeable, >> > just like user-defineds. >> >> But they [dw]on't work right. >Um -- why not? Why can't we make then work right in perl6? As my example demonstrated, it's because there's no run-time application of

Re: RFC: Drop distinction between user-defined and built-in functions

2000-08-04 Thread John Porter
Tom Christiansen wrote: > > I think it's critical that built-ins be reference-takeable, > > just like user-defineds. > > But they [dw]on't work right. Um -- why not? Why can't we make then work right in perl6? -- John Porter

Re: RFC: Drop distinction between user-defined and built-in functions

2000-08-04 Thread Tom Christiansen
>Gisle Aas wrote: >> >> foo(\&print, "foo"); >I think it's critical that built-ins be reference-takeable, >just like user-defineds. But they [dw]on't work right. sub CORE::push { push(@_); $fn = \&CORE::push; $fn->(@some_array, now, some, list); --tom

Re: RFC: Drop distinction between user-defined and built-in functions

2000-08-04 Thread John Porter
Gisle Aas wrote: > > foo(\&print, "foo"); I think it's critical that built-ins be reference-takeable, just like user-defineds. -- John Porter

Re: RFC: Drop distinction between user-defined and built-in functions

2000-08-04 Thread skud
No need to send them to -language as well as the librarian. The librarian assigns a number then posts it to the appropriate list, so just sending it to the librarian will save the duplication and keep the discussion more tightly threaded. K. -- Kirrily Robert -- <[EMAIL PROTECTED]> -- http://n

Re: RFC: Drop distinction between user-defined and built-in functions

2000-08-04 Thread Tom Christiansen
>Johan Vromans <[EMAIL PROTECTED]> writes: >> =head1 ABSTRACT >> >> Perl distinguishes named operators and functions. For Perl6, this >> disctinction can be dropped. >Will this then work? > sub foo { > my $func = shift; > &$func(@_); > } > foo(\&print, "foo"); > foo("print", "foo"

Re: RFC: Drop distinction between user-defined and built-in functions

2000-08-04 Thread Gisle Aas
Johan Vromans <[EMAIL PROTECTED]> writes: > =head1 ABSTRACT > > Perl distinguishes named operators and functions. For Perl6, this > disctinction can be dropped. Will this then work? sub foo { my $func = shift; &$func(@_); } foo(\&print, "foo"); foo("print", "foo"); foo(\&C