bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23282: 24.5; eieio class unexpected behaviour


From: Tom
Subject: bug#23282: 24.5; eieio class unexpected behaviour
Date: Wed, 13 Apr 2016 16:00:29 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]