[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02135] Re: Question the sequence in $:

From: Clemens Hintze <c.hintze@...>
Date: 2000-03-24 15:27:21 UTC
List: ruby-talk #2135
Yukihiro Matsumoto writes:
> Hi,
> 
> In message "[ruby-talk:02129] Question the sequence in $:"
>     on 00/03/24, Clemens Hintze <c.hintze@gmx.net> writes:

...

> |I think everywhere the sequence should be: 
> |
> |   local -> site -> system
> |
> |Other opinions?
> 
> I think relative path is too dangerous.  BTW, the sequence in the
> Perl's load path is reversed somehow.

Damned! I have written to quickly, indeed. I have not thought about
security at all! *Blush* Once again a situation arose that let me dig
a hole and jump into it...

> 
> |And while thinking about this, I have another proposal. How about to
> |include the directory from where the program was started into the load
> |path too? That would enable me to put my application with its support
> |libs into an own subdirectory and after starting, the load path would
> |already contain this directory too! So its support libs could easily
> |be required too. But this should only happen, of course, if $0 is not
> |'-' or '-e'.
> 
> I can understand you.  But `$0' path is not portable.

<put the head out from the hole> Does that mean you like the idea, but
there are problems with recognizing the correct '$0' value? 
<vanish again like a flash>

> 							matz.

\cle

-- 
Clemens Hintze  mailto: c.hintze@gmx.net

In This Thread