Class Localtion: Home »» Programming [Tech Archives]
Programming(Programming FAQ covers Icon programming and the Icon library, Meta-Language (ML), Ada programming and tools like DRAGON.) under "Tech Archives"
Dispatching problem.
Hi all!I get compilation error when I try to dispatch a call using classwide access variables stating that I cannot call abstract program.Perhaps oversimplified example is:package PBN istype Item_T is abstract tagged null record;type Item_Ptr is access all Item_T'Class;function Create (From
Dispatching operations
Hi,Consider <>,example from 20.c to 20.f.It is said that the following call:PB(Arg =X);is non-dispatching.My confusion is that B is private in P2. X is declared in P2 as well.In the above call, I'd expect PB to be called (which is actuallythe case), but since everything is known stati
Discriminating Ada source code through compiler arguments
Hello. Im a newie in Ada and I want to known how can I pass argumentsto the compiler to discriminate parts of a Ada source code. Somethinglike the #ifdefs that we can use in the C programming languaje.Thank you.
Discriminated types with default discriminants
Hi,Consider this:procedure Hello istype Discriminated(Size : Integer := 10) isrecordValue : String (1Size);end record;S : Discriminated;beginnull;end Hello;Compiler (GNAT) gives me two warnings:5. Value : String (1Size);| warning: creation of object of this type may raiseStorage_Error8. S : Disc
discriminants, what are they?
Hi,Can explain what an Ada discriminant is? I found this definition butI'm new to Ada so I can't quite understand the technical definition.Thanks
Discriminant within discriminants
I have a the followingpackage message_typestype id_type is range 18;type dispense_ack (size:id_type:=id_Type'first) isrecorddispense_acks:array(1size) of acks;end record;type message_types(dispense_acknowledgement, dispense_request);type in_messages(kind :msg_types:=msg_types'first) is
discriminant type
I want to create a Matrix from a one-D Vector :type T_Matrix (Col_Size, Row_Size : Integer) is recordVec : T_Vector (Col_Size * Row_Size);end record;There is a compilation error "Col_Size * Row_Size". Is there a solutionto my problem ? It is important for me to use a vector one-D toconstruct T_M