On 03/01/16 14:02, Lehmann, Patrick wrote:
Hello,
I'm experimenting with VHDL-2008 features and protected types and got
this error:
method return type must not be access of file
My code uses 2 protected types, wherin one returns the otherone as a
pointer (access type) because protected types can not be returned.
type T_TEST is protected
procedure init(TestID : NATURAL; TestName : STRING);
function getName return STRING;
end protected;
type T_TEST_PTR is access T_TEST;
In fact, this declaration is not allowed: you cannot declare an
access to a protected type. I will fix the message.
Tristan.
_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss