On Mon, Sep 03, 2001 at 11:55:45PM +0200, Yves Bastide wrote:
> On Mon, Sep 03, 2001 at 10:45:16PM +0100, Jose Abilio Oliveira Matos wrote:
> >
>
> FOUND!
>
> diff -u -p -r1.5 reLyX.in
> --- lib/reLyX//reLyX.in 2001/08/31 07:54:05 1.5
> +++ lib/reLyX//reLyX.in 2001/09/03 21:46:38
> @@ -14,11 +14,13 @@ $^W = 1; # same as 'perl -w'
> use vars qw($lyxdir $lyxname);
>
> my (@maybe_dir);
> -my $mainscript = "reLyXmain.pl";
> +my $mainscript;
> my $relyxdir;
>
> # Do this in a BEGIN block so it's done before the 'use lib' below
> BEGIN{
> +# Variables may not be assigned before the BEGIN block
> +$mainscript = "reLyXmain.pl";
> # This points to LyX library dir, e.g. /usr/local/share/lyx
> $lyxdir = "@LYX_DIR@";
> # This is just "." if you compiled from the source directory
>
>
> ... and there was much rejoycing.
I have commited, ok I'll do it after this message.
*Please* Michael tell me that now this works! *Please*!
> > > > I really, really prefer python.
> > > >
> > > > And the code is so much readble...
> > >
> > > But so much less fun... :-)
> >
> > Come on, that's not true. You can overload operators, use functional
> > programming tools as I did in my last program. If that is not fun, used with
> > classes I don't know what is. ;-)
> >
> > You can add a __cal__ method to a class making it a functor, and using it
> > everywhere a function can be used. I don't even dream it how to do it in
> > perl... ;-)
>
> Oh, I'm not arguing against Python; whenever a friend try to convert me to
> C#, I answer Python. And I don't know either language yet ;-)
Let us simply say that the major secret of python programming is that it
is always fun to use it. If you don't believe then try it. ;-)
[Amir's praise... :-)]
> --
> Yves
Thank you Yves for restoring my mental health... :-)
--
José