Dear All;

 I would like to ask you if it is possible in 32 Bit and/or 64 Bit GNU Pascal; to determine, to precise the 'Bit' value of each member of a Record, as it is so for a Structure in C.

 Thanks a lot for a prospective reply.

 With kind regards.

 Kadir Yuce

 Below is a C code example :

 #include <stdio.h>

 struct bitprecising
                            {
                             char ch : 8;
                             int n : 2;
                             long l : 3;
                            }
;

int main()
              {
               struct bitprecising x;
               struct bitprecising *p;
           
               p= &x;
              (*p).ch= 'a';
              (*p).n= 1;
              (*p).l= 2L;

              printf("x.ch= %c\n", x.ch);
              printf("x.n= %d\n", x.n);
              printf("x.l= %ld\n", x.l);
             }


Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail