fl <
rxj...@gmail.com> wrote in
news:63166e16-eae7-4e70...@googlegroups.com:
> Hi,
>
> I notice that the return value 'ret_lines' definition has no scope
> 'TextQuery' as the internal variable 'has_val'. Is there any rule on
> such usage?
>
>
> Thanks,
>
>
> ..........
> // returns lines not in its operand's result set
> set<TextQuery::line_no>
> NotQuery::eval(const TextQuery& file) const
> {
> // virtual call through the Query handle to eval
> set<TextQuery::line_no> has_val = query.eval(file);
>
> set<line_no> ret_lines;
As far as we know from this excerpt, the names TextQuery::line_no and
line_no may refer to different types, or they may not. For example, if
TextQuery is a class and NotQuery is inherited from TextQuery, they would
most probably refer to the same type.
A decent programming IDE would provide you with a 'go to definition'
feature which would help you to see (with some confidence) if they are
the same or not.
hth
Paavo