librelist archives

« back to archive

tutorial loadpath in liberty.se

tutorial loadpath in liberty.se

From:
Raphael Mack
Date:
2013-05-19 @ 20:10
Hello,

why do we have the tutorial loadpath with the root dir of tutorial
included in generated liberty.se, but not include the subdirectories?
What is the use of this anyhow, couldn't we just drop the tutorial entry
in liberty.se?

Rapha

Re: [libertyeiffel] tutorial loadpath in liberty.se

From:
Cyril Adrian
Date:
2013-05-21 @ 03:59
Hi Raphael, all,

2013/5/19 Raphael Mack <ramack@raphael-mack.de>

> why do we have the tutorial loadpath with the root dir of tutorial
> included in generated liberty.se, but not include the subdirectories?
>

Something left from old times when the loadpath was not so important. I
wanted to change it but had no time to do so yet. Feel free to do it :-)

What is the use of this anyhow, couldn't we just drop the tutorial entry
> in liberty.se?
>

Why? With the class lookup rules your application can have classes with the
same names, they would be loaded instead of those in the tutorial (because
they would be closer). And AFAIK there is no name overlap between the
tutorial and the standard library.

Cheers,

*Cyril A**DRIAN*

[image: Facebook] <https://www.facebook.com/cyril.adrian> [image:
Twitter]<https://twitter.com/cadbart> [image:
LinkedIn] <http://fr.linkedin.com/in/cadrian/> [image: Google
Plus]<https://plus.google.com/u/0/100388810006463519079>
Contact me: [image: Google Talk] cyril.adrian@gmail.com
   [image: Twitter] <http://twitter.com/cadbart>  Latest tweet:
https://t.co/s9Jve9eGCC Merge branch 'master' of
http://t.co/fb0ier7RC9:LibertyEiffel/Liberty Follow
@cadbart<http://twitter.com/cadbart>

Reply<http://twitter.com/?status=@cadbart&in_reply_to=cadbart&in_reply_to_status_id=336385723387240450>

Retweet<http://twitter.com/?status=RT%20%40cadbart%3A%20https%3A%2F%2Ft.co%2Fs9Jve9eGCC%20Merge%20branch%20'master'%20of%20http%3A%2F%2Ft.co%2Ffb0ier7RC9%3ALibertyEiffel%2FLiberty>
09:39
May-20 <http://twitter.com/cadbart/statuses/336385723387240449>     Get
this email app!

<http://www.wisestamp.com/apps/twitter?utm_source=extension&utm_medium=email&utm_term=twitter&utm_campaign=apps>

  Free signature tool.

<http://r1.wisestamp.com/r/landing?promo=32&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_32>
CLICK
HERE TO GET 
IT.<http://r1.wisestamp.com/r/landing?promo=32&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_32>
‚Äč

Re: [libertyeiffel] tutorial loadpath in liberty.se

From:
Raphael Mack
Date:
2013-05-28 @ 18:04
Hi there,

Am Dienstag, den 21.05.2013, 05:59 +0200 schrieb Cyril ADRIAN: 
> 2013/5/19 Raphael Mack <ramack@raphael-mack.de>

>         What is the use of this anyhow, couldn't we just drop the
>         tutorial entry
>         in liberty.se? 
> 
> 
> Why? With the class lookup rules your application can have classes
> with the same names, they would be loaded instead of those in the
> tutorial (because they would be closer). And AFAIK there is no name
> overlap between the tutorial and the standard library.
> 
Oh, this is harder than expected. We have name clashes within the
tutorial - which makes problems for passing the class name on the
command line ( cd Liberty/tutorial/agent && se c -o example1 EXAMPLE1) 
and we have name clashes between class names and generic arguments in
the std lib (see #114)

Maybe it is better to have only local loadpath.se files for those
tutorials which use classes in sub-directories (essentially any with
more than one class) and copy those classes which are used also by tests
to the test dir.

Regards,
Rapha

Re: [libertyeiffel] tutorial loadpath in liberty.se

From:
Raphael Mack
Date:
2013-08-17 @ 21:02
Hello,

let me come back to this one here. Wouldn't it make sense to use the
current working directory as starting point for searching the root
class?

Best regards,
Rapha

Am Dienstag, den 28.05.2013, 20:04 +0200 schrieb Raphael Mack: 
> Hi there,
> 
> Am Dienstag, den 21.05.2013, 05:59 +0200 schrieb Cyril ADRIAN: 
> > 2013/5/19 Raphael Mack <ramack@raphael-mack.de>
> 
> >         What is the use of this anyhow, couldn't we just drop the
> >         tutorial entry
> >         in liberty.se? 
> > 
> > 
> > Why? With the class lookup rules your application can have classes
> > with the same names, they would be loaded instead of those in the
> > tutorial (because they would be closer). And AFAIK there is no name
> > overlap between the tutorial and the standard library.
> > 
> Oh, this is harder than expected. We have name clashes within the
> tutorial - which makes problems for passing the class name on the
> command line ( cd Liberty/tutorial/agent && se c -o example1 EXAMPLE1) 
> and we have name clashes between class names and generic arguments in
> the std lib (see #114)
> 
> Maybe it is better to have only local loadpath.se files for those
> tutorials which use classes in sub-directories (essentially any with
> more than one class) and copy those classes which are used also by tests
> to the test dir.
> 
> Regards,
> Rapha
>