slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] advantage of $1 over a variable


Depends on what system you are looking at.

Many shells and perl use those names a special variables, usually as function
inputs.  In Bash, args passed to a function are kept in $1, $2, etc.

I remember when Fortran had only 2 letter var names, AA, AB, AC, etc.

Humorously, $0-$9 limits you to 10 vars, where $a-$Z is 52!  :^)

I remember a customer program that had:
param
nextparam
nextnextparam

--
Joe Robertson
jmrobert5@xxxxxxxxx
http://home.mchsi.com/~jmrobert5/

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]