[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: another take on hackers and painters



From: Vadim Nasardinov <vadimn@attbi.com>
Subject: Re: another take on hackers and painters
Date: Wed, 21 May 2003 17:06:45 -0400

> Dan Sugalski wrote:
>  > Someone sent me private mail that boiled down to "Well, should
>  > 1 + '2 * 5' evaluate to 11, then?"
> 
> It does in Tcl:
> 
> $ tcl -c 'puts [expr 1 + "2*5"]'
> 11
> 

Tcl does even more:

tcl>puts [expr 2 * "5+1"]
11
tcl>puts [expr 2 "*" 5 "+" 1]
11


Jakub Travnik
jabber://jtra@jabber.com