GNU bug report logs - #23282
24.5; eieio class unexpected behaviour

Previous Next

Package: emacs;

Reported by: Tom <tomhk215 <at> gmail.com>

Date: Wed, 13 Apr 2016 15:40:02 UTC

Severity: normal

Tags: wontfix

Found in version 24.5

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23282 in the body.
You can then email your comments to 23282 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#23282; Package emacs. (Wed, 13 Apr 2016 15:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tom <tomhk215 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 13 Apr 2016 15:40:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tom <tomhk215 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; eieio class unexpected behaviour
Date: Wed, 13 Apr 2016 16:00:29 +0800
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





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23282; Package emacs. (Sun, 15 May 2016 15:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 23282 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: 23282 <at> debbugs.gnu.org
Subject: bug#23282: 24.5; eieio class unexpected behaviour
Date: Sun, 15 May 2016 11:18:07 -0400
tags 23282 + wontfix
close 23282
quit

It's documented in the EIEIO manual that the :protection slot has no effect.

(info "(eieio) Slot Options")

‘:protection’
     This is an old option that is not supported any more.
[...]
     This protection is not enforced by the code any more, so it’s only
     useful as documentation.




Added tag(s) wontfix. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Sun, 15 May 2016 15:19:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 23282 <at> debbugs.gnu.org and Tom <tomhk215 <at> gmail.com> Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Sun, 15 May 2016 15:19:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 13 Jun 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 67 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.