Skip Menu |

This queue is for tickets about the Object-Pad CPAN distribution.

Report information
The Basics
Id: 132364
Status: new
Priority: 0/
Queue: Object-Pad

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Support lexically-scoped slot variables
It's common in packages to provide a "per-sub" visible lexical by syntax like: { my $thing; sub get_thing { return $thing //= make_thing() } } We could support similar syntax of slot visibility by making slots invisible after their block expires: { has $thing; method thing { return $thing //= make_thing() } } -- Paul Evans