Ver Mensaje Individual
  #4  
Antiguo 28-05-2010
Avatar de defcon1_es
defcon1_es defcon1_es is offline
Miembro
 
Registrado: mar 2004
Ubicación: Cuenca - España
Posts: 533
Reputación: 21
defcon1_es Va por buen camino
Cita:
Empezado por Chris Ver Mensaje
Gracias Delfos por la explicación. No sabía ese datos de los conjuntos. Seguramente la limitación sigue existiendo en D2009. Aunque no quedé claro porque A queda en 14 y B en 89??????

Saludos,
Chris
1) En delphi 2010 persiste esa limitación en los conjuntos. Extraido de la ayuda de Delphi 2010:

Sets
A set is a collection of values of the same ordinal type.
The values have no inherent order, nor is it meaningful for a value to be included twice in a set.

The range of a set type is the power set of a specific ordinal type, called the base type;
that is, the possible values of the set type are all the subsets of the base type, including the empty set.
The base type can have no more than 256 possible values, and their ordinalities must fall between 0 and 255.



2) Se queda entre 14 y 89 porque se trunca el valor (270 - 256 = 14).
Si representas 270 en binario = 100001100, al guardarlo en 8 bits, el digito más significativo se pierde,
y se guarda solo el valor 00001100, que es el 14 en decimal.
__________________
Progress Openedge
https://abevoelker.com/progress_open...dered_harmful/


Delphi forever...

Última edición por defcon1_es fecha: 28-05-2010 a las 17:51:37.
Responder Con Cita