Ignore:
Timestamp:
Aug 8, 2024, 10:39:40 PM (13 hours ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
acab1bd
Parents:
c1c0efdb
Message:

Minor update on the thesis (add auto initialization and update future work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/jiada_liang_MMath/test.adb

    rc1c0efdb r7568e5c  
    22-- with Ada.Standard; use Ada.Standard;
    33procedure test is
     4        type GBR is (  Green, Blue, Red );
    45        type RGB is ( Red, Green, Blue );
    5         for RGB use ( Red => 10, Green => 20, Blue => 30 );
     6        for RGB use ( Red => 10, Green => 20, Blue => 21 );
    67        Colour : RGB := Red;
    78       
     
    9596       
    9697        if B then null; end if;
     98
     99        B := False;
     100        Colour := Green;
     101
     102        Put_Line ( Boolean'Image( B ) & " " );
     103        Put_Line ( RGB'Image( RGB'Enum_Val( 10 ) ) & " " );
    97104end test;
    98105
Note: See TracChangeset for help on using the changeset viewer.