Wow, I feel so enlightened! Imagine all the wasted time I've spent using
structures!
Every stop to consider that structures can be members of structures, or that
you can have arrays of structures? That definitely pulls you out of two
dimensions.
Yes, Structures are nearly identical to associative arrays in other
languages. I use those a lot, too.
A structure is a way of gathering information about a single entity into one
place. Nothing more, nothing less. I can't understand why you seem so
offended by this, since structures in C/C++ are pretty much the same thing.
Just because YOU can't find a use for them doesn't mean they're useless. It
just means your education is incomplete.
Michael J. Sheldon
Internet Applications Developer
Phone: 480.699.1084
http://www.desertraven.com/
PGP Key Available on Request
-----Original Message-----
From: Reuben King [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 20, 2000 11:49
To: [EMAIL PROTECTED]
Subject: What's the use of structures, anyway?
Structures seem totally useless to me. If they were two dimensional,
then I could see definite value. I'd love to see something like:
<cfset access_flags["is_superuser"].default_value="false">
<cfset access_flags["is_superuser"].description="Is this user an
administrator?">
<cfset access_flags["is_superuser"].data_type="boolean">
<cfset access_flags["is_superuser"].user_assignment="true">
<cfset access_flags["access_emps"].default_value="false">
<cfset access_flags["access_emps"].description="Does this user have
access to the employee records?">
<cfset access_flags["access_emps"].data_type="boolean">
<cfset access_flags["access_emps"].user_assignment="true">
.. etc ...
As I understand it right now from reading the CF docs and Forta's books,
structures are nothing at all but a one dimensional shorthand way of
passing around a single row of key/value pairs. Am I correct in this?
I guess I'll just use the QueryNew() function and its relatives..
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.