gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Size of SET type


From: TELEMAQUE Olivier
Subject: Size of SET type
Date: Tue, 21 Mar 2023 17:41:23 +0000

Hi,

 

I have the code below :

 

MODULE My_Module;

 

FROM SYSTEM IMPORT SIZE;

FROM libc IMPORT printf;

 

TYPE Byte_T = SET OF [0..7];

BEGIN

    printf("SIZE Byte_T = %u\n", SIZE(Byte_T));

END My_Module.

 

I expected to have SIZE Byte_T = 1 but unfortunately SIZE Byte_T = 4. Is it the behavior expected from Gm2 or is it a bug ?

 

Regards,

Olivier



CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]