RE: Inflating and deflating
[prev]
[thread]
[next]
[Date index for 2005/02/10]
From: Perrin Harkins Sent: 08 February 2005 16:21
>=20
> On Tue, 2005-02-08 at 11:07 +0000, Addison, Mark wrote:
> > I've done this kind of thing the same way, although not using
> > accessor_name(). As cdbi is Class::Accessor based you get an alias
> > method you can call, _colname_accessor, that calls the=20
> > origional cdbi version (much like SUPER in overides) e.g.
>=20
> I used accessor_name() to make sure that the CDBI-provided accessor
> would not have the same name as the one I was writing. You'll have
> problems if you try to define one with the same name as the one CDBI
> creates.
Sorry if I'm being dense, but I thought that was the whole point
of the alias that Class::Accessor (therefore CDBI) creates!
ie you can define a method with the _same_ name as the CDBI created
accessor and then use the alias method to call the origional CDBI
generated one. Is there a gotcha with this I'm missing?
mark
--
This email (and any attachments) is intended solely for the individual(s) t=
o whom addressed.=20
It may contain confidential and/or legally privileged information.=20
Any statement or opinions therein are not necessarily those of ITN unless s=
pecifically stated.=20
Any unauthorised use, disclosure or copying is prohibited.=20
If you have received this email in error, please notify the sender and dele=
te it from your system.=20
Security and reliability of the e-mail and attachments are not guaranteed.=20
You must take full responsibility for virus checking.
Independent Television News Limited,=20
Registered No. 548648 England,
VAT Reg. No: GB 756 2995 81,=20
200 Gray's Inn Road, London WC1X 8XZ,
Telephone: 020 7833 3000.
|
|
RE: Inflating and deflating
Addison, Mark 17:52 on 10 Feb 2005
|