[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Re: FileName.absFilename -> FileName.absFileName
From:       Jean-Marc Lasgouttes <lasgouttes () lyx ! org>
Date:       2010-04-20 16:50:40
Message-ID: F96D38EC-F196-4DDC-8DD1-FBAC1158DF9D () lyx ! org
[Download RAW message or body]

Le 20 avr. 10 à 18:45, Pavel Sanda a écrit :
> chmm, we already have Buffer::absFileName. isn't possible
> that something goes wrong in the code like:
>
> Buffer::foo(){
> foo2(...FileName(absFileName()....),absFileName(),...)
> }
>
> dont remember exact rules but iirc c++ naming lookup was
> doing pretty wild actions like pulling in the namespace
> of function arguments... so now there could be danger that
> in certain constructions FileName::absFileName would be
> chosen instead of Buffer::absFileName?

I think it is safe. The only problem I know of is between methods
and functions (i.e. if we had an absFileName function).

JMarc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic