Ingo Blechschmidt writes: > One should be able to unwrap $subref using > $id.unwrap(); > > Or, given $id, it'd be cool if you could get the original $subref: > my $origsubref = $id.sub(); > > Additionally, $id could coerce to an ID number in numeric context, so > $subref.unwrap($id); > would still be valid code (==> TIMTOWTDI).
Yep, definitely. $id would of course become invalid after such an operation, which I think is reasonable. Luke > What are your opinions on this? BTW, Perl5/Tk has the same problem IMHO: > my $canvas = $widget->Canvas; > my $id = $canvas->createLine(...); > ...; > $canvas->raise($id); > # Better: > $id->raise; > > > Sorry if this was discussed before, didn't found anything. > > > Ingo Blechschmidt