Does "list of unittype" OK in e language?

Status
Not open for further replies.

cnspy

Full Member level 3
Joined
Sep 10, 2002
Messages
150
Helped
5
Reputation
10
Reaction score
1
Trophy points
1,298
Activity points
1,041
In e language, can I use unit type in "list of type" command?

Such as:

fileA :
unit test_u { };

fileB :

tests[5] : list of test_u;

Is it OK?
 

Do you want to generate a list of size 5 ,type test_u?
If so ,I'll do like this:
tests:list of test_u is instance;
keep tests.size()==5;

And they must be put in a unit.
 

thanks a lot.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…