Re: namespaces

2001-03-17 Thread lyx-devel
On Thu, Mar 15, 2001 at 07:20:52PM +0100, Lars Gullik Bjønnes wrote: > What I now need is a poll to see if anonymous namespaces are supported > on the different platforms. > > > So people please test: > > > namespace { > > int foo() { return 1; } > > } > > int main() { > int i = foo

Re: namespaces

2001-03-16 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> I am now removing all CXX...NAMESPACES stuff (of course I should Lars> have let someone with an older compiler do this...), will commit Lars> that in a few minutes. Lars> What I now need is a poll to see if anonymous namespace

Re: namespaces

2001-03-16 Thread Lars Gullik Bjønnes
"Garst R. Reese" <[EMAIL PROTECTED]> writes: | In math_cursor.C:48 (using std::cerr) I got cerr undefined with | gcc-3.0 Probably because iostream is not included. but I changed this to lyxerr. Lgb

Re: namespaces

2001-03-16 Thread Lars Gullik Bjønnes
"Garst R. Reese" <[EMAIL PROTECTED]> writes: | In math_cursor.C:48 (using std::cerr) I got cerr undefined with gcc-3.0 | How std is std? very. but we should not use cerr in code, that is taken care of by lyxerr. Lgb

Re: namespaces

2001-03-16 Thread Garst R. Reese
In math_cursor.C:48 (using std::cerr) I got cerr undefined with gcc-3.0 How std is std? Garst

RE: namespaces

2001-03-16 Thread Juergen Vigna
On 15-Mar-2001 Lars Gullik Bjønnes wrote: > So people please test: It compiles with RedHat7.0 (but you probably already knew:) Jürgen -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen VignaE-Mail: [EMAIL PROTECTED] Italienallee 13/N Tel/F

Re: namespaces

2001-03-15 Thread Martin Vermeer
On Thu, Mar 15, 2001 at 07:20:52PM +0100, Lars Gullik Bjønnes wrote: > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Precedence: bulk > X-No-Archive: yes > List-Post: > List-Help: > List-Unsubscribe: > Deliv

Re: namespaces

2001-03-15 Thread Andre Poenitz
> What I now need is a poll to see if anonymous namespaces are supported > on the different platforms. Supported in 2.95.2. Andre' -- André Pönitz [EMAIL PROTECTED]

Re: Namespaces

2001-03-14 Thread Angus Leeming
On Wednesday 14 March 2001 12:25, Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | > This will only make it harder to do the merge... > | > | Lars Gullik Bjønnes! You mean it's going to happen? W! > > Just give me some hours. > > I want to have the compabili

Re: Namespaces

2001-03-14 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | > This will only make it harder to do the merge... | | Lars Gullik Bjønnes! You mean it's going to happen? W! Just give me some hours. I want to have the compability code for minipages work first. (at least I now know why it does not work) I

Re: Namespaces

2001-03-14 Thread Angus Leeming
> This will only make it harder to do the merge... Lars Gullik Bjønnes! You mean it's going to happen? W! Are you happy with things as they stand? Shall I make a patch of BRANCH_MVC's current contents against HEAD and submit it to you? I can easily undiff the changes I've made in my lo

Re: Namespaces

2001-03-14 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | On Wednesday 14 March 2001 11:02, Jean-Marc Lasgouttes wrote: | > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: | > | > Angus> As Lars says that namespaces are "GO, GO", I'd like to go | > Angus> through the header files (not the .C files)

Re: Namespaces

2001-03-14 Thread John Levon
On 14 Mar 2001, Lars Gullik Bjønnes wrote: > Look at the tests already used in configure. > > Lgb *doh* another moron day for me I think :) john (where did I think CXX_WORKING_NAMESPACES came from ? :P ) -- "Never use a big word when a diminutive one would suffice. Be more or less

Re: Namespaces

2001-03-14 Thread Angus Leeming
On Wednesday 14 March 2001 11:02, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> As Lars says that namespaces are "GO, GO", I'd like to go > Angus> through the header files (not the .C files) and remove code > Angus> like: > > Angus> #ifdef SI

Re: Namespaces

2001-03-14 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On 14 Mar 2001, Jean-Marc Lasgouttes wrote: | | > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: | > | > Angus> As Lars says that namespaces are "GO, GO", I'd like to go | > Angus> through the header files (not the .C files) and remove code |

Re: Namespaces

2001-03-14 Thread John Levon
On 14 Mar 2001, Jean-Marc Lasgouttes wrote: > > "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> As Lars says that namespaces are "GO, GO", I'd like to go > Angus> through the header files (not the .C files) and remove code > Angus> like: > > Angus> #ifdef SIGC_CXX_NAMESPACES

Re: Namespaces

2001-03-14 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> As Lars says that namespaces are "GO, GO", I'd like to go Angus> through the header files (not the .C files) and remove code Angus> like: Angus> #ifdef SIGC_CXX_NAMESPACES using SigC::Object; #endif If you are going to do that, t

Re: namespaces

2001-03-08 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | Would you mind if somebody asked on the users' list what compilers people | are using? Certainly not. Lgb

Re: namespaces

2001-03-08 Thread Andre Poenitz
> For me namespaces is "Go! Go!", exceptions must still wait a bit > (exceptions will also mean a lot of changes in lyx code). Ok... although I do not want to sprinkle mathed with 'mathed::' already, I'd like to reserve 'mathed::' (or maybe 'math::') for mathed related stuff. I.e. I would not mi

Re: namespaces

2001-03-08 Thread Lars Gullik Bjønnes
Juergen Vigna <[EMAIL PROTECTED]> writes: | On 08-Mar-2001 Andre Poenitz wrote: | | > PS: Anybody betting how Lars would vote? ;-) | | Well I bet 1 cent he want's to wait till all have upgraded their | compilers ;P For me is gcc 3.0 the turning point. That compiler is roumored to compile the l

Re: namespaces

2001-03-08 Thread Juergen Vigna
On 08-Mar-2001 Andre Poenitz wrote: > PS: Anybody betting how Lars would vote? ;-) Well I bet 1 cent he want's to wait till all have upgraded their compilers ;P Jürgen -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen VignaE-Mail: [EMAIL PROTECTE

Re: namespaces

2001-03-08 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: >> | I guess the two questions are related. Let's see how Lars' ukase >> | on the question looks like. >> >> "ukase"?? Andre> Maybe it's not the proper plural... It was not meant to be plural, anyway. Andre> I'd vote for 'ukases' in E

Re: namespaces

2001-03-08 Thread Andre Poenitz
> | I guess the two questions are related. Let's see how Lars' ukase > | on the question looks like. > > "ukase"?? Maybe it's not the proper plural... I'd vote for 'ukases' in English and 'ukasi' in Russian. In German 'Ukase' is certainly an acceptable abbreviation for 'edicts of the Czar' ;-)

Re: namespaces

2001-03-08 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | I guess the two questions are related. Let's see how Lars' ukase | on the question looks like. "ukase"?? Lgb

Re: namespaces

2001-03-08 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> Good idea... Would you do that? Andre> PS: Anybody betting how Lars would vote? ;-) I guess the two questions are related. Let's see how Lars' ukase on the question looks like. JMarc

Re: namespaces

2001-03-08 Thread Andre Poenitz
> If we decide to do so, I can compile with gcc 2.8.1 from > time to time to check that it still works. Having namespaces can be really nice... it took me a while to arrive at this conclusion but I am a convinced "namespacer" by now... > Andre> In the Linux world, I'd say 2.95 and later is usabl

Re: namespaces

2001-03-08 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: >> And if we're still in that interim >> >> #ifdef CXX_HAS_NAMESPACES namespace citation #endif Andre> Ok... if people use compilers without namespace support we'll Andre> certainly get into trouble if we rely on them... Andre> Questio

Re: namespaces

2001-03-08 Thread Andre Poenitz
> And if we're still in that interim > > #ifdef CXX_HAS_NAMESPACES > namespace citation > #endif Ok... if people use compilers without namespace support we'll certainly get into trouble if we rely on them... Question is: What compilers do people use and what features do these compilers support?

Re: namespaces

2001-03-08 Thread Angus Leeming
On Thursday 08 March 2001 09:37, Andre Poenitz wrote: > > namespace citation { > > > > class ControlCitation : public ControlCommand > > Isn't one of the ideas of namespaces that instead of > > citation::ControlCitation > citation::GUICitation > > one could use shorter names like >

Re: namespaces

2001-03-08 Thread Andre Poenitz
> namespace citation { > > class ControlCitation : public ControlCommand Isn't one of the ideas of namespaces that instead of citation::ControlCitation citation::GUICitation one could use shorter names like citation::Control citation::Gui ? Andre' -- André Pönitz ..

Re: namespaces

2001-03-08 Thread Angus Leeming
On Wednesday 07 March 2001 18:08, Allan Rae wrote: > On Wed, 7 Mar 2001, Angus Leeming wrote: > > > Does the fact that "boost::scoped_ptrs" etc are now appearing everywhere mean > > that we are now using namespaces officially and that I can write (for > > example): > > > > namespace frontends {

Re: namespaces

2001-03-07 Thread Andre Poenitz
> > Does the fact that "boost::scoped_ptrs" etc are now appearing > > everywhere mean that we are now using namespaces officially > You could but why would you need namespace citation? Maybe we should have some rules fixed first... like 'no caps' in the names or how much should go in a namespace

Re: namespaces

2001-03-07 Thread Allan Rae
On Wed, 7 Mar 2001, Angus Leeming wrote: > Does the fact that "boost::scoped_ptrs" etc are now appearing everywhere mean > that we are now using namespaces officially and that I can write (for > example): > > namespace frontends { > namespace citation { > ... > > } > } You could but why wo

Re: namespaces

2000-01-04 Thread Jean-Marc Lasgouttes
> "John" == John Weiss <[EMAIL PROTECTED]> writes: John> Maybe we should have a subdir with several small sourcelets and John> a Makefile desiged to test whether or not the compiler supports John> certain ANSI C++ features yet. We could ask folks to mail in John> what they find. Then we'll ha

Re: namespaces

2000-01-03 Thread John Weiss
On Tue, Dec 21, 1999 at 11:35:52AM +0100, Lars Gullik Bjønnes wrote: > Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > | > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | > | Lars> Does namespace support work on all the compilers that the 1.1.x > | Lars> series currently c

Re: namespaces

1999-12-21 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | | Lars> | cxx 6.1: OK. | | Lars> IMO if this works we should begin using | Lars> a LyX namespace right | Lars> away. We have already had the sqrt | Lars> clash. | | I'd rather avo

Re: namespaces

1999-12-21 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> | cxx 6.1: OK. | | Lars> IMO if this works we should begin using Lars> a LyX namespace right | Lars> away. We have already had the sqrt Lars> clash. | | I'd rather avoid it for now :) Lars> The pity, is that now we use structs

Re: namespaces

1999-12-21 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | | Lars> Does namespace support work on all the compilers that the 1.1.x | Lars> series currently compiles on? | | gcc 2.8.1: | | fantomas: g++ -Wall -ansi -pedantic nsp.C | ns

Re: namespaces

1999-12-21 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Does namespace support work on all the compilers that the 1.1.x Lars> series currently compiles on? gcc 2.8.1: fantomas: g++ -Wall -ansi -pedantic nsp.C nsp.C:1: sorry, not implemented: namespace cxx 6.1: OK. Lars> IMO i

Re: Namespaces (was: string vs. LString)

1999-04-12 Thread Jean-Marc Lasgouttes
> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes: Allan> Asger seems to want to make extensive use of namespaces and to Allan> a certain extent I can see that as being a good way to enforce Allan> the notion of ownership to the various modules. So we could Allan> have a gui namespace and an

Re: Namespaces (was: string vs. LString)

1999-04-12 Thread Asger Alstrup Nielsen
> Asger seems to want to make extensive use of namespaces and to a certain > extent I can see that as being a good way to enforce the notion of > ownership to the various modules. So we could have a gui namespace and an > Inset namespace among others. If we then use namespaces in our code we > c

Re: Namespaces (was: string vs. LString)

1999-04-11 Thread Allan Rae
On Thu, 8 Apr 1999, Jean-Marc Lasgouttes wrote: > > "Allan" == Allan Rae <[EMAIL PROTECTED]> writes: > > Allan> # We still need portability to other platforms of course but we > Allan> can draw a line and say "it must support namespaces" or > Allan> whatever else we desire. We can probably

Re: Namespaces (was: string vs. LString)

1999-04-08 Thread Jean-Marc Lasgouttes
> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes: Allan> # We still need portability to other platforms of course but we Allan> can draw a line and say "it must support namespaces" or Allan> whatever else we desire. We can probably get away without Allan> partial specialization of templates