[Qt-interest] QList<T> conversion

Thiago Macieira thiago at kde.org
Tue Feb 1 23:02:50 CET 2011


On Tuesday, 1 de February de 2011 15:47:16 Oliver.Knoll at comit.ch wrote:
> To be honest I only know the term "isomorphic" in the context of algebra,
> not sure what it denotes in the context of OO languages. Since we are
> talking about some kind of "sets" (aka "lists") the term "isomorphic" here
> probably really means that they are "structurally equal" and... uh well....
> ;) As an exercise for the reader refer to
> https://secure.wikimedia.org/wikipedia/en/wiki/Isomorphism ;)

Well, to be quite honest, I'm not sure I've heard the term isomorphism applied 
to computer science. I might have coined the term.

I meant it from the original Greek name: same form. It means a QList<T *> and 
a QList<X *> have the exact same memory layout and structures, except of 
course for the type of the pointer.

The assumption holds of course for all pointers of the same size. There are 
certain exotic pointers that aren't of the same size (pointers to member 
functions, or pointers to functions in some ABIs).

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110201/73c0c4b0/attachment.bin 


More information about the Qt-interest-old mailing list