[Pharo-dev] Weak pointer

Norbert Hartl norbert at hartl.name
Thu Apr 10 07:05:24 EDT 2014

Am 10.04.2014 um 12:40 schrieb Igor Stasenko <siguctua at gmail.com>:

> On 10 April 2014 10:50, Yuriy Tymchuk <yuriy.tymchuk at me.com> wrote:
> Hi guys.
> Is there a way to have a week pointer? Or some wrapper with a week pointer? I know that there are week collections, but I what to have a “variable” that won’t prevent the object it points to be garbage collected.
> There's no week pointers, only day, month or year ;)

| weekPointer |
weekPointer := Week new.

seems to work well.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20140410/9e494f37/attachment-0002.html>

More information about the Pharo-dev mailing list