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

Currying questions

2 views
Skip to first unread message

Ralph Mellor

unread,
Apr 11, 2003, 2:41:00 AM4/11/03
to perl6-l...@perl.org
|||Thankyou for S6.
||
|||Larry has previously noted that assumptions should
probably be a binding rather than a value assignment:

$text = "fooo";| print $textfrom(1); # displays 'ooo'
| $text = "bahh";||| print $textfrom(1); # displays 'ahh'

Is that the final call on this? Or is it controllable:
|
| (use IO::Logging).assuming(logfile=>$file); # copied|
||| (use IO::Logging).assuming(logfile:=>$file); # bound

Or perhaps copied for sub level assumptions and bound
for file level assumptions?
|||||
Can one override an assumption by passing the relevant
argument in an actual call (by name, obviously)? (Being
able to do such an override would be pretty pointless
for routine level currying but potentially very handy
in the context of file level currying.) If not, does one
get an error message if one supplies such an argument
to a routine that has a slurpy hash?

File level assumptions will be thread local, right?

--
ralph


0 new messages