On Sat, Nov 21, 2009 at 8:47 PM, David Brown wrote:
> On Fri, Nov 20, 2009 at 03:54:45PM -0800, Mike Hinchey wrote:
> >It's the . special form that makes the difference. In (. System
> >(getProperty)), the dot interprets System as a class and looks for a
> static
> >method (at read/compile time)
On Fri, Nov 20, 2009 at 03:54:45PM -0800, Mike Hinchey wrote:
>It's the . special form that makes the difference. In (. System
>(getProperty)), the dot interprets System as a class and looks for a static
>method (at read/compile time). With (identity System), System resolves to a
>value, a Class
Matt Brown wrote:
> Why does (. System getProperty "java.version") work when
> (. (identity System) getProperty "java.version") does not work, given
> that
> (identity System) should be the same as System ?
It's because the . special form treats class names specially. In Java
there's unfortunat
It's the . special form that makes the difference. In (. System
(getProperty)), the dot interprets System as a class and looks for a static
method (at read/compile time). With (identity System), System resolves to a
value, a Class object, returned by identity, then your outside dot looks for
a ge