in root v 4.00 on Fermi RedHat I try to compile this:
In my root session:
root  .L tst2.cc++
Info in : creating shared library /cdf/data3a/fedorko/selection_04261030/./tst2_cc.so
root  tst2()
Why can I access private variables and functions?
Is this fixed later?
[quote=“fedorko”]Why can I access private variables and functions?[/quote]Because Cint doesn’t stop you from soing so.
[quote=“fedorko”]Is this fixed later?[/quote]It’s on the to-do list. For now you’ll have to compile your code (.L mycode.C+) if you want to ensure that private vars are not accessible.
I do compile my code… (.L mycode.C+)
maybe I am posting to the wrong list but I thaught that the built-in compiler was akin to cint…
When we build dictionary (and technically this is what happens when you use ACLiC (mycode.C+)), to properly access the information, we ‘break’ the privacy (#define private public). We are moving away from this implementation and thus this should be fixed in a future release.
This is fixed in the CVS repository as of 2007/01/26