On Thu, 16 Sep 2004, Stefan Seefeld wrote:
> Grzegorz Jakacki wrote:
> > On Wed, 15 Sep 2004, Stefan Seefeld wrote:
> >
> >
> >>hi there,
> >>
> >>I'm looking at the Environment::LookupType method implementation
> >>and I'm wondering why it contains a loop over HashTable::HashEntries().
> >>How can a single symbol result in multiple entries ? Any multiple
> >>definition of a symbol (forward declarations don't count) in the same
> >>scope is an error, isn't it ?
> >>What am I missing ?
> >
> >
> > Overloading?
> aren't symbols stored by their encoded name, which contains the signature ?
If not overloading, then maybe the fact, that OpenC++ cuts corners on type
analysis, which results in encodings of different functions look the same?
E.g.
void g( char (*)[5] ) {}
and
void g( char (*)[6] ) {}
?
I cannot come up with less convoluted example...
BR
Grzegorz
##################################################################
# Grzegorz Jakacki Huada Electronic Design #
# Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang #
# tel. +86-10-64365577 x2074 Beijing 100015, China #
# Copyright (C) 2004 Grzegorz Jakacki, HED. All Rights Reserved. #
##################################################################
|