From: Tom <tomhk215@gmail.com>
To: 23282@debbugs.gnu.org
Subject: bug#23282: 24.5; eieio class unexpected behaviour
Date: Wed, 13 Apr 2016 16:00:29 +0800 [thread overview]
Message-ID: <570DFC9D.6010102@gmail.com> (raw)
In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2016-01-05 on Tom-Fujitsu
Windowing system distributor `The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04.4 LTS
Important settings:
value of $LANG: en_HK.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Memory information:
((conses 16 320884 19487)
(symbols 48 38512 1)
(miscs 40 632 687)
(strings 32 78047 9931)
(string-bytes 1 2243922)
(vectors 16 32952)
(vector-slots 8 675268 10887)
(floats 8 629 636)
(intervals 56 4725 390)
(buffers 960 23)
(heap 1024 35485 1572))
(defclass testclass ()
((num :initform 1
:protection :private
:accessor testclass.num)))
(setq my-test (make-instance 'testclass))
(eieio-oref my-test 'num)
;; ==> Error because of private
(testclass.num my-test)
;; ==> 1, Can get a private value!!
Accessor should be unable to access private data.
--
Regards
Tom Tang
next reply other threads:[~2016-04-13 8:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 8:00 Tom [this message]
2016-05-15 15:18 ` bug#23282: 24.5; eieio class unexpected behaviour Noam Postavsky
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=570DFC9D.6010102@gmail.com \
--to=tomhk215@gmail.com \
--cc=23282@debbugs.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.