Hey Chad, Ok, it's Friday night, it's getting on, and I've had a few beers by now, so I'll bite.
Will a "say what!??" do? I don't understand why you do that "MyArray[75]['red']" instead of "MyArray[75] = 'red'" - maybe it's obvious, but I have never seen anything like that before. Well, not exactly true - that rings similar to microsoft "CMAP" automation classes - but even those seem a tad more logical (to me) than what you are suggesting here. Can you elucidate a little for me? :-} Cheers, Mike. Who is thinking "what the..." > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Chad Renando > Sent: Wednesday, 22 June 2005 9:45 PM > To: CFAussie Mailing List > Subject: [cfaussie] Array memory usage / best practice > > Have a question regarding arrays. To minimize database calls > in my presentation layer using my own hacked framework, I am > passing heaps of stuff in arrays. For a 2-dimensional array, > is it bad juju to make an ID the first array dimension, and > place the appropriate value in the second dimension? > > So if "Red" was ID 75, my array would be: variables.MyArray[75]['red'] > > This leaves array locations 1 to 74 undefined. I am thinking > this is bad when I get to ID 95,000. > > Look forward to the first "why don't you just"... > > Cheers, > > Chad > who seriously doubts if any of this truly matters... but > still wants an answer (also known as hypocritical apathy) > > --- > You are currently subscribed to cfaussie as: > [EMAIL PROTECTED] To unsubscribe send a blank email to > [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
