Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Peter Kümmel
Great it is Friday! So, no, nice tentative but we are not going to rewrite LyX in Vala! :-) This was not my idea. I would create a new language similar to vala and rewrite LyX in this language. :-) Is there something like "application specific programming language"? Peter

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Peter Kümmel
On 11.02.2011 13:47, Abdelrazak Younes wrote: On 02/11/2011 01:41 PM, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 01:10:42PM +0100, Abdelrazak Younes wrote: On 02/11/2011 12:22 PM, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 11:07:51AM +0100, Abdelrazak Younes wrote: On 02/11/2011 0

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Peter Kümmel
On 11.02.2011 13:41, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 01:10:42PM +0100, Abdelrazak Younes wrote: On 02/11/2011 12:22 PM, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 11:07:51AM +0100, Abdelrazak Younes wrote: On 02/11/2011 01:04 AM, Enrico Forestieri wrote: On Fri, Feb 11,

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Abdelrazak Younes
On 02/11/2011 01:50 PM, Peter Kümmel wrote: But reading about Nokia & Microsoft it's maybe time to look for a other toolkit than Qt and a new programming language. ;) Yeah... this looks really troublesome... Nokia is shooting in their own foot... Recently I've discovered vala, very nice a

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Peter Kümmel
No, const variables have internal linkage, so they will not be seen outside their compile unit. Simply declare them as "extern" also in version.cpp. You mean declaring it in the header as "extern const int i" is the same as .h: const int i; .cpp static int i; No, I mean that if you want a

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Abdelrazak Younes
On 02/11/2011 01:41 PM, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 01:10:42PM +0100, Abdelrazak Younes wrote: On 02/11/2011 12:22 PM, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 11:07:51AM +0100, Abdelrazak Younes wrote: On 02/11/2011 01:04 AM, Enrico Forestieri wrote: On Fri, Feb

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Enrico Forestieri
On Fri, Feb 11, 2011 at 01:10:42PM +0100, Abdelrazak Younes wrote: > On 02/11/2011 12:22 PM, Enrico Forestieri wrote: > >On Fri, Feb 11, 2011 at 11:07:51AM +0100, Abdelrazak Younes wrote: > >>On 02/11/2011 01:04 AM, Enrico Forestieri wrote: > >>>On Fri, Feb 11, 2011 at 12:49:22AM +0100, Peter Kümme

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Abdelrazak Younes
On 02/11/2011 12:22 PM, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 11:07:51AM +0100, Abdelrazak Younes wrote: On 02/11/2011 01:04 AM, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 12:49:22AM +0100, Peter Kümmel wrote: On 11.02.2011 00:34, Enrico Forestieri wrote: No, const variables

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Enrico Forestieri
On Fri, Feb 11, 2011 at 11:07:51AM +0100, Abdelrazak Younes wrote: > On 02/11/2011 01:04 AM, Enrico Forestieri wrote: > >On Fri, Feb 11, 2011 at 12:49:22AM +0100, Peter Kümmel wrote: > >>On 11.02.2011 00:34, Enrico Forestieri wrote: > >>>No, const variables have internal linkage, so they will not b

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-11 Thread Abdelrazak Younes
On 02/11/2011 01:04 AM, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 12:49:22AM +0100, Peter Kümmel wrote: On 11.02.2011 00:34, Enrico Forestieri wrote: No, const variables have internal linkage, so they will not be seen outside their compile unit. Simply declare them as "extern" also in ve

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-10 Thread Pavel Sanda
Peter Kümmel wrote: > Seeing all the problems with extern & Co. I think a macro is even better than > all the "extern const". in that case we can directly use PACKAGE_VERSION etc given from environment... pavel

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-10 Thread Peter Kümmel
As long as variables are declared const, it's not a real problem I guess. Technically, if they are const, they are no variables anymore. At least one knows immediately that the global "variables" are constants, otherwise we would have used functions for sure. And one never knows whether a funct

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-10 Thread Vincent van Ravesteijn
Op 11-2-2011 2:00, Peter Kümmel schreef: On 11.02.2011 00:34, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 12:06:00AM +0100, Pavel Sanda wrote: kuem...@lyx.org wrote: Author: kuemmel Date: Thu Feb 10 23:57:41 2011 New Revision: 37591 URL: http://www.lyx.org/trac/changeset/37591 Log: comp

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-10 Thread Peter Kümmel
On 11.02.2011 00:34, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 12:06:00AM +0100, Pavel Sanda wrote: kuem...@lyx.org wrote: Author: kuemmel Date: Thu Feb 10 23:57:41 2011 New Revision: 37591 URL: http://www.lyx.org/trac/changeset/37591 Log: compile. Modified: lyx-devel/trunk/src/version

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-10 Thread Enrico Forestieri
On Fri, Feb 11, 2011 at 12:49:22AM +0100, Peter Kümmel wrote: > On 11.02.2011 00:34, Enrico Forestieri wrote: > >No, const variables have internal linkage, so they will not be seen outside > >their compile unit. Simply declare them as "extern" also in version.cpp. > > > > You mean declaring it in

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-10 Thread Peter Kümmel
On 11.02.2011 00:34, Enrico Forestieri wrote: On Fri, Feb 11, 2011 at 12:06:00AM +0100, Pavel Sanda wrote: kuem...@lyx.org wrote: Author: kuemmel Date: Thu Feb 10 23:57:41 2011 New Revision: 37591 URL: http://www.lyx.org/trac/changeset/37591 Log: compile. Modified: lyx-devel/trunk/src/version

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-10 Thread Enrico Forestieri
On Fri, Feb 11, 2011 at 12:06:00AM +0100, Pavel Sanda wrote: > kuem...@lyx.org wrote: > > Author: kuemmel > > Date: Thu Feb 10 23:57:41 2011 > > New Revision: 37591 > > URL: http://www.lyx.org/trac/changeset/37591 > > > > Log: > > compile. > > > > Modified: lyx-devel/trunk/src/version.cpp > > ===

Re: r37591 - in lyx-devel/trunk/src: . mathed

2011-02-10 Thread Pavel Sanda
kuem...@lyx.org wrote: > Author: kuemmel > Date: Thu Feb 10 23:57:41 2011 > New Revision: 37591 > URL: http://www.lyx.org/trac/changeset/37591 > > Log: > compile. > > Modified: lyx-devel/trunk/src/version.cpp > == > --- l