On 10 Sep 2012, at 22:58, Daniël Mantione wrote:

> Op Mon, 10 Sep 2012, schreef Jonas Maebe:
> 
>> No, sets are an opaque data type. Their internal format is undefined.
> 
> I knew you would answer to that :) While, I disagree that a set is opaque, 
> but, we can skip that discussion. What's going on here is that, wether it is 
> a good idea or not, the implementor of the QT interface units is trying to 
> provide Pascal data types to its user. Given the fact you are doing that, a 
> set of enum is IMO as reasonable as other weak type to strong type mappings.

If you want to do that, you need to add a layer in between that converts the 
sets into integer bitmasks in a reliable, portable and future-proof way.


Jonas_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to