Guest
A rather pedantic question:
The 2000 LRM, sec 10.4, says that the scope of use clause begins
immediately after the use clause. In the case of a list of selected
names, e.g. the following design unit w/context clause
library std;
use std.all, standard.all;
entity foo...
I would expect that the packages in std (i.e. standard) are not
directly visible until after the semicolon following the use clause,
and hence expect to get an error saying "standard" is undefined. Is
this correct? Emprically, this is at odds with Modelsim's vcom 6.0b,
which allows this.
Thoughts?
- Kenn
Notes: [1] cleverly, the LRM doesn't explicitly say that the scope I
mentioned above is the point at which the names become directly
visible; but it seems to be the reasonable assumption
Notes: [2] even though the implicit context is supposed to contain a
"std.standard.all" use clause, it doesn't say that the identifier
"standard" , denoting a package, is directly visible, hence the
example above is not a special case because I used "std" instead of
"foo".
The 2000 LRM, sec 10.4, says that the scope of use clause begins
immediately after the use clause. In the case of a list of selected
names, e.g. the following design unit w/context clause
library std;
use std.all, standard.all;
entity foo...
I would expect that the packages in std (i.e. standard) are not
directly visible until after the semicolon following the use clause,
and hence expect to get an error saying "standard" is undefined. Is
this correct? Emprically, this is at odds with Modelsim's vcom 6.0b,
which allows this.
Thoughts?
- Kenn
Notes: [1] cleverly, the LRM doesn't explicitly say that the scope I
mentioned above is the point at which the names become directly
visible; but it seems to be the reasonable assumption
Notes: [2] even though the implicit context is supposed to contain a
"std.standard.all" use clause, it doesn't say that the identifier
"standard" , denoting a package, is directly visible, hence the
example above is not a special case because I used "std" instead of
"foo".