On Aug 21, 2007, at 7:54 AM, James Turnbull wrote:
> Hi all
>
> I am using the defined function and it seems to work for resource
> types
> but fails with classes - I am setting a variable like so:
>
> $test = defined(Class[testing])
>
> The test always returns false. Similarly defined functions for
> resource
> types like:
>
> $testtype = defined(File[test])
>
> Return true.
>
> Is there something I am missing?
Yeah, an inconsistency -- just use the naked class (or definitino)
name when checking to see if a class is defined.
--
We all have strength enough to endure the misfortunes of others.
-- Francois de La Rochefoucauld
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com