I've wondered this too.

It's possible to get access to private variables and methods in Java (using
the setAccessible() method - unless you have a security manager installed).
It also possible to do the same in .NET (someone wrote a book about this -
see Hijacking .NET by Dan Appleman).

These languages don't enforce "privateness", they assume that people
implementing the api will not write code that accesses private data because
it's poor coding practice to do so.

What's the difference between what CFMX does and Java/.NET?


PS: When I say .NET, I mean C#, VB.NET, etc.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Nat Papovich
Sent: Thursday, 31 July 2003 15:39
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] "this" scope vs. unnamed


I've seen quite a few references to how the "private"-ness of the
variables scope in CFCs (talking RedSky here) is not quite like Java's
private or protected scopes. I am something of a "n00b" (haxor-speak!)
when it comes to Java, so would anyone care to compare and contrast the
aforementioned scopes in Java and CF? I (and surely others) would be
greatful.

Thanks,
NAT



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to