[DCPM] shorthand required

Neil Williams linux at codehelp.co.uk
Sat Feb 17 13:56:36 PST 2007


On Sat, 17 Feb 2007 21:39:59 +0000
Neil Williams <linux at codehelp.co.uk> wrote:

> > $destination_object->$destination_fieldname($source_object->$source_fieldname)
> > if ($source_object->$source_fieldname);
>
> I'm not sure if I follow you here. There is no 'destination' object and
> I don't see how to convert a struct into this dictionary.
>
> How does that cope with objects that have different numbers of
> different types of parameters, all with different names? How is
> the 'dictionary' created and populated?

Another problem: Dictionary keys are not guaranteed unique across all
objects *unless* the key is actually a combination of the object name
AND the parameter name. This cannot be changed - the objects already
exist in third-party code with which this module needs to be compliant.

--


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/devoncornwall-pm/attachments/20070217/b41152e5/attachment.bin 


More information about the Devoncornwall-pm mailing list