On Tue, Sep 8, 2009 at 2:06 PM, Sean Corfield<[email protected]> wrote:
> ColdSpring's AOP relies on this behavior BTW and I've seen other code
> that does stuff like:
>
> <cfset result = someFunctionCall() />
> <cfif isDefined('result')>
> ...
> </cfif>
>
> Again, because someFunctionCall() might not return a value (or might
> return null) and thus the result variable gets a value of null and so
> isDefined() yields false on it when it has a null value.

And just to be clear: I'm not thrilled about this approach but it has
worked for a long time and people do rely on it. So you could easily
argue that CFML *does* support nulls - and has done for years - just
not in the same way that Java supports nulls :)
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies US -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to