all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eric Ludlam <ericludlam@gmail.com>
Cc: "Eric M. Ludlam" <zappo@gnu.org>, emacs-devel@gnu.org
Subject: Re: The :protection option for EIEIO slots
Date: Fri, 16 Jan 2015 22:56:41 -0500	[thread overview]
Message-ID: <jwv7fwmhxjy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <54B9CF54.9050508@gmail.com> (Eric Ludlam's message of "Fri, 16 Jan 2015 21:56:20 -0500")

> 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



      reply	other threads:[~2015-01-17  3:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16  3:00 The :protection option for EIEIO slots Stefan Monnier
2015-01-17  2:56 ` Eric Ludlam
2015-01-17  3:56   ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv7fwmhxjy.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=ericludlam@gmail.com \
    --cc=zappo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.