I think it would have to depend on whether your orderItems have behavior (like a getQuantityInStock() method) or just data.
 
/t


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Ferraro
Sent: Wednesday, May 25, 2005 5:25 PM
To: [email protected]
Subject: [CFCDev] object composition - which method is better in coldfusion?

I have an order object, in ColdFusion which method is better for composition of this object.

 

Attribute orderItems – array of structures

 

Or

 

Attribute orderItems – array of orderItem objects

 

The average number of order items is 3 and with an occasional high of 20.

 

What are your thoughts?

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to