Could you use a struct? 

1. It's a built-in CF class
2. Public cant modify data unless you provide a mechanism for them to do so
3. Loop using any CF looping construct

Aaron

----- Original Message ----- 
From: "Taco Fleur" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Tuesday, January 04, 2005 1:06 PM
Subject: RE: Typesafe enum design pattern (another go)


> The problem:
> 
> I need a class that represents constants
> I don't want the public to be able to modify any data
> I need to be able to loop over the constants easily
> 
> Basically quoting what problems the pattern solves.. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189202
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to