@acer So here is my problem a little more in context:
I am loading a package "Lattice". In this package I have a ModuleLoad proc that amongst others adds a few types specific to the use of this package:
Note that the addition of ExpandedLine is commented out since it does not work.
If I now try to add ExpandedLine in a regular worksheet that uses Lattice; I get this:
restart;with(Lattice); # output not reproduced here
TypeTools:-AddType(ExpandedLine,'Vector(Element)'); # no output generated
Error, (in Vector) dimension parameter is required for this form of initializer
So something is interfering here. It seems that Vector is being evaluated despite the quotes. I get the same problem when I activate the AddType stmt. in ModuleLoad. Note that the type Element works as intended; and I also do not see any problem per se with Vector, which is used in the package in different routines.
Maple 17.02 (64 bit) on Mac OS X 10.6.8.