Have you tried <cfreturn /> in your function example?

I think you're relying on edge "features" to get the "null". We've had to deal 
with several incompatibilities in all versions of cfml engines in M2 - however 
it's safe to say almost all of them were undocument or edge case including some 
similar you describe (what you do can cause null reference errors in the var 
scope on Adobe CF- look at the Transfer code base). Other problems such as 
Adobe CF barfing up some on java.util.StringBuilder methods or having to java 
cast certain variables in CF7, but works in CF8 and breaks again without the 
cast in CF9 (this was fixed in 9) are other strange CF problems we've had to 
deal with.

Your attitude Sean is rather...well, poor IMO. You should be one of the few 
people that understands that framework compatibility on multiple cfml engines 
isn't a snap. Bare in mind certain versions of Railo 3 caused Mach-II to bomb 
out and this was straight up cfset / variable assignments.

Best,
.Peter 

-----Original Message-----
From: Sean Corfield <[email protected]>

Date: Tue, 8 Sep 2009 13:39:50 
To: <[email protected]>
Subject: [OpenBD] Re: Help getting FW/1 running on OpenBD



On Mon, Sep 7, 2009 at 8:43 PM, Matt Woodward <[email protected]> wrote:
> Define what you mean by "null value." Since when did Adobe CF have
> nulls?

Here's a concrete example:

<cffunction name="foo" returntype="any">
<!--- no return at all --->
</cffunction>

<cfset request.controller = foo() />

<cfif structKeyExists(request,"controller")>
<!--- should return false --->

FWIW, assigning a (Java) null to a variable in CFML has made it
'disappear' ever since CFMX 6.0 - and both structKeyExists() and
isDefined() yield false on it.

> Also it seems this wasn't clear before--where it's blowing up
> arguments.cfc is not a CFC or a struct, it's a zero-length string.

Sounds like OpenBD is somehow treating the null-value return /
assignment as storing an empty string in the variable - which is
certainly not the correct behavior.
--
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