Re: Changable locale data...

2003-07-16 Thread Ben Bennett
Speed?

-ben

On Tue, Jul 15, 2003 at 09:42:02PM -1000, Joshua Hoblitt wrote:
> On Tue, 15 Jul 2003, Dave Rolsky wrote:
> 
> > On Tue, 15 Jul 2003, Ben Bennett wrote:
> >
> > > DateTime::Locale objects return references to internal data.  So if a
> > > caller changes things through the ref subsequent calls will see the
> > > bogus data.
> > >
> > > I am not sure if this is a problem or not, but we should at least
> > > document that the caller _must_not_ change things through the ref.
> >
> > The locale objects really aren't intended to be used by end-users.  But
> > yes, this should probably be documented.
> 
> Is there a good reason to return a direct reference?
> 
> -J
> 
> --


Re: Changable locale data...

2003-07-15 Thread Dave Rolsky
On Tue, 15 Jul 2003, Ben Bennett wrote:

> DateTime::Locale objects return references to internal data.  So if a
> caller changes things through the ref subsequent calls will see the
> bogus data.
>
> I am not sure if this is a problem or not, but we should at least
> document that the caller _must_not_ change things through the ref.

The locale objects really aren't intended to be used by end-users.  But
yes, this should probably be documented.


-dave

/*===
House Absolute Consulting
www.houseabsolute.com
===*/


Changable locale data...

2003-07-15 Thread Ben Bennett

DateTime::Locale objects return references to internal data.  So if a
caller changes things through the ref subsequent calls will see the
bogus data.

I am not sure if this is a problem or not, but we should at least
document that the caller _must_not_ change things through the ref.

  -ben