Or, (now that I have had my morning caffeine) to remove the scatter /
gather entirely, just make a tied hash interface to the param and delete
functions.  You get a hash interface, the C::A object maintains its
encapsulation, and you don't have the performance hit of deleting all of
the parameters and resetting them in the process.

Brian
----
Brian T. Wightman - Global Data Management
[EMAIL PROTECTED]
414-524-4025


|---------+---------------------------->
|         |           [EMAIL PROTECTED]|
|         |           com              |
|         |           Sent by:         |
|         |           [EMAIL PROTECTED]|
|         |           g                |
|         |                            |
|         |                            |
|         |           01/06/2004 09:15 |
|         |           AM               |
|         |                            |
|---------+---------------------------->
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                                              |
  |       To:       [EMAIL PROTECTED]                                                  
                                                       |
  |       cc:                                                                          
                                                              |
  |       Subject:  [cgiapp] Re: 3.2_mls6 with delete() and RETURN_ONLY additions      
                                                              |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|




On 2004-01-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
> If the structure does happen to change in the future, you could make
> $self->{params} a tied hash...
>
> However, I would prefer to not be able to muck around in the __PARAMS
> structure.  If you want to directly manipulate the parameters, do a
scatter
> / gather at the beginning and ending of your code block...

Neat idea. I certainly agree that just adding a delete() function would
be the conventional way to address the issue, and consistent with
related modules.

I'll keep the scatter / gather pattern in mind for future cases where
that would be useful.

             Mark

--
 . . . . . . . . . . . . . . . . . . . . . . . . . . .
   Mark Stosberg            Principal Developer
   [EMAIL PROTECTED]     Summersault, LLC
   765-939-9301 ext 202     database driven websites
 . . . . . http://www.summersault.com/ . . . . . . . .


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to