Re: GObject's property with _ issue

Torben Nehmer <[email protected]> Mon, 20 Feb 2006 16:32:27 +0100
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

- --Jukka Zitting wrote on 2006-02-20 16:26:
>> Jukka, I didn't fully understood how you would do that name
>> mapping, but it at least *sounded* good for me.
> 
> My idea is based on the fact that we in any case need to keep track of
> more information per property than what is done by GLib. The
> MidgardObjectProperty class could keep track of the original NCName of
> a property so that it can be used to map properties correctly.
> 
> For example if we have a property named "some_ComplexName", then
> midgard-core would keep track of the following mappings:
> 
>     sql("some_ComplexName") => "some_ComplexName"
>     glib("some_ComplexName") => "some-ComplexName"
> 
> Midgard-PHP would keep track of the following:
> 
>     php("some_ComplexName") => "some_complexname"
> 
> And Midgard-Java:
> 
>     java("some_CompexName") => "some_ComplexName"
> 
> These name mappings could be automatically applied and unapplied
> whenever the API boundaries are crossed. Things like QB and reflection
> capabilities would do this translation also for all property name
> strings.
> 
> I agree that this solution is a bit complex conceptually, but in
> practice it would be totally transparent to applications.

Sounds good to me.


Live long and Prosper!
Torben Nehmer

- --
Torben Nehmer, Guenzburg, Bavaria, Germany
http://www.nathan-syntronics.de, mailto:[email protected]
PGP Public Key: https://www.link-m.de/pgp/t.nehmer.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD+eELJPh4Kn6d5FYRAnxzAJwIkCoLrEtxQCki762qnn13TTjWTQCgsvLH
BVQyIuVTIDm/5uLytTl6PPo=
=Cj+Q
-----END PGP SIGNATURE-----