T
Tricky
Guest
If I point to some basic type, how can I set the value at the pointer?
eg:
type I_ptr is access integer;
..
..
..
variable A : I_ptr
...
A := new integer;
A := 10; --does not work - complains that A is not an integer (rightly
so);
same with any new types that are discrete
type A_t;
type A_ptr is access A_t;
type A_t is (X, Y, Z);
...
variable S : A_ptr;
...
S := new A_t;
S := X; --same problem as with integer;
Am I, as usually, trying to go outside the scope of VHDL?
eg:
type I_ptr is access integer;
..
..
..
variable A : I_ptr
...
A := new integer;
A := 10; --does not work - complains that A is not an integer (rightly
so);
same with any new types that are discrete
type A_t;
type A_ptr is access A_t;
type A_t is (X, Y, Z);
...
variable S : A_ptr;
...
S := new A_t;
S := X; --same problem as with integer;
Am I, as usually, trying to go outside the scope of VHDL?