Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
7
Task/Break-OO-privacy/Clojure/break-oo-privacy-1.clj
Normal file
7
Task/Break-OO-privacy/Clojure/break-oo-privacy-1.clj
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(ns a)
|
||||
(def ^:private priv :secret)
|
||||
|
||||
; From REPL, in another namespace 'user':
|
||||
user=> @a/priv ; fails with: IllegalStateException: var: a/priv is not public
|
||||
user=> @#'a/priv ; succeeds
|
||||
:secret
|
||||
2
Task/Break-OO-privacy/Clojure/break-oo-privacy-2.clj
Normal file
2
Task/Break-OO-privacy/Clojure/break-oo-privacy-2.clj
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
user=> (get-field Double "serialVersionUID" (Double/valueOf 1.0))
|
||||
-9172774392245257468
|
||||
Loading…
Add table
Add a link
Reference in a new issue