in reply to Re: the 'dot dot dot' operator
in thread the 'dot dot dot' operator
How about instead of () you insert die("Deferred implementation can't be executed");.Perhaps, but when I used it I just wanted a placeholder, not necessarily an abstract op (yes, I made that up ;) and I also have no idea how it will be implemented in perl6 (it may be described in p6l ... somewhere). Maybe we need YAO instead
And obligatory example usagepackage bangbangbang; use Filter::Simple; FILTER_ONLY code => sub { s{ \s \Q!!!\E \s } { die("Deferred implementation can't be executed"); }gx }; q[ ichi ni san ];
use bangbangbang; sub foo { !!! } my $bar = sub { !!! }; sub baz { return !!! } eval { foo() } or warn "foo() - $@"; eval { &$bar() } or warn "bar() - $@"; eval { baz() } or warn "baz() - $@"; __output__ foo() - Deferred implementation can't be executed at bbb_test.pl line +3. bar() - Deferred implementation can't be executed at bbb_test.pl line +4. baz() - Deferred implementation can't be executed at bbb_test.pl line +5.
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: the 'dot dot dot' operator
by diotalevi (Canon) on Apr 14, 2003 at 14:41 UTC | |
by Mr. Muskrat (Canon) on Apr 14, 2003 at 14:51 UTC |