> On Sat, 9 Oct 2004, Bil Kleb wrote:
> 
> > I used to do this with VERSION < 1.8,
> >
> > components = ARGV || %w[ Adjoint Design FUN3D_90 GetGrad
> >                          GridMove HRefine LibF90 Mixed Party
> >                          PHYSICS_MODULES Rad ]
> >
> > It no longer works for VERSION == 1.8.2-p2.
> >
> > What's going on and what is the idiom now?

On Fri, 2004-10-08 at 19:54, Ara.T.Howard / noaa.gov wrote:
> 
> i can't figure that it ever would have worked?
> 
>    jib:~ > /usr/bin/ruby -v
>    ruby 1.6.8 (2002-12-24) [i386-linux-gnu]
> 
>    jib:~ > /usr/bin/ruby -e'p(ARGV || 42)'
>    []
> 
>    jib:~ > /usr/bin/ruby -e'p(ARGV || 42)' 42
>    ["42"]
> 
>    jib:~ > /usr/bin/ruby -e'p(ARGV)'
>    []
> 
> even in 1.6.8 ARGV is an Array, and so always true?  you have code that gives
> default arguments like this?

Are you sure you weren't doing something like:

components = *ARGV 
components ||= %w[ Adjoint Design FUN3D_90 GetGrad
                         GridMove HRefine LibF90 Mixed Party
                         PHYSICS_MODULES Rad ]

(which I think should still work).

-- Markus