Jared’s line:

 

<cfset User = CreateObject("component","CollectionBeanMaker").init(FORM).MakeBean(User).save() />

 

Doug’s line:

 

<cfset CreateObject("component","CollectionBeanMaker").init(FORM).MakeBean(User).save() />

 

I saved 7 characters!

 

Doug

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jared Rypka-Hauer
Sent: Tuesday, February 28, 2006 9:36 PM
To: [email protected]
Subject: Re: SPAM-LOW: RE: [Reactor For CF] Cutting out Repetive setXXX(FORM.XXX)

 

That line is identical to the line I gave, isn't it?

 

No matter, just puzzled.

 

------------------------------------------------

Jared C. Rypka-Hauer

Continuum Media Group LLC

http://www.web-relevant.com

Member, Team Macromedia - ColdFusion

 

"That which does not kill me makes me stranger." - Yonah Schmeidler

 

On Feb 28, 2006, at 8:27 PM, Doug Hughes wrote:



Just because we’re trying to make that line of code shorter, you could do this too:

 

<cfset CreateObject("component","CollectionBeanMaker").init(FORM).MakeBean(User).save() />

 

No need to return the user, it’s an object and is populated byref ;)

 

But yea, this functionality doesn’t belong in reactor. 

 

Doug

-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

Reply via email to