Skip to main content
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Steve 'Cutter' Blades
Ben Nadel at cf.Objective() 2014 (Bloomington, MN) with: Steve 'Cutter' Blades

Arrays By Reference In ColdFusion .... Sort Of

By
Published in

I thought I was onto something GREAT concerning passing arrays by reference in ColdFusion. Tom, over on the House of Fusion's CF-Talk list, just pointed out that ArrayResize() has casting issues. I don't know how to deal with this as it is happening internally to a ColdFusion built-in method.

After doing some Google searches, it seems that other people has similar problems (several years ago... I guess I am slow off the block). Specifically, I found posts by Aaron Johnson and Tim Blair that talked about creating your own Java wrapper class. To deal with this.

Dang!

I am irritated right now for several reasons. Firstly, I thought I was onto something really really cool here. Although I can still use this methodology internally to stuff, I would rather have it globally useful. And secondly, these people dealt with similar issues several years ago! Ugg! Why did I not know this stuff. Why am I only learning it now. Why am I so slow off the block????

Reader Comments

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel