On Sun, Feb 23, 2003 at 03:07:13AM +0900, Wejn wrote:
> Hello,
>   today when I was hacking my old sources I found interesting line
> in my FTP auth. wrapper:
>   exec ARGV.shift, *ARGV unless banned
> 
> Now I wonder how come that this thing works ... is it safe to assume
> that parameter evaluation will *always* be the same (that ARGV.shift
> will be evaluated before *ARGV)? This isn't safe in C, IIRC ...
> 

AFAIK Ruby does no optimization on the AST as of now, so it should be
safe. Don't know if it's by design or just because of the current
implementation.

Some time ago somebody manipulated the AST to optimize tail-recursion; I
think it was planned to enter 1.7. Other optimizations might come...

-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

Linux: Where Don't We Want To Go Today?
	-- Submitted by Pancrazio De Mauro, paraphrasing some well-known sales talk