Yes, I imagine that it's more trouble than it's worth.

Linked lists are really only useful when you're dealing with a language that
does not support dynamically-sized arrays but need that functionality.
Classic construction requires the use of pointers to memory locations - a
trait that CF does not support, because it's not necessary due to the
abstraction and functionality that the language offers.  Also, creating a
real linked list is an exercise in garbage collection and operator
overloading since a shallow copy is merely a reference to the same nodes as
the original and destruction of the linked list requires a specific
deallocation of the memory locations that the list refers to.

I can't think of a good reason for you to attempt to create a CF version of
the linked list, especially since it's not *really* a linked list.
 
Matthew Small
Web Developer
American City Business Journals
704-973-1045
[EMAIL PROTECTED]
 

-----Original Message-----
From: S.Isaac Dealey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 2:10 PM
To: CF-Talk
Subject: Linked Lists

I'm contemplating possibly creating a Linked List CFC as a means of
creating in essence an array which is passed by reference instead of
by value, and which would have some built-in sorting functionality.
Could be useful for some memory resident structures like for instance
a shopping cart, or sortable search results stored in the user's
session. I'm wondering though if it's maybe more trouble and overhead
than it's worth, given that CF uses dynamic arrays.

Here's a summary for anyone who's not familiar with them:

http://en.wikipedia.org/wiki/Linked_list

Anybody else care to comment?

s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218062
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to