[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The :protection option for EIEIO slots
From: |
Stefan Monnier |
Subject: |
Re: The :protection option for EIEIO slots |
Date: |
Fri, 16 Jan 2015 22:56:41 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> I'm surprised the protected slot doesn't work. There is a test for that
> throwing an error.
The test checks that you can't access a protected slot from outside of
a method. But as soon as you're inside a method that dispatched on
a class (i.e. when eieio--scoped-class is non-nil), you can access
any protected slot of any object of any class.
> No flags. I've written a lot of classes and apparently didn't use it very
> much, so feel free.
Good, thanks,
Stefan