Re: Syntax, expressiveness and the beauty of Tcl



suchenwi wrote:

One interesting effect could be e.g
expr {sin($x) = sin($x)}
where as an lvalue, sin() would be an array, while on the right side
it's still the good old sine function...

Wow! This would be fun! You can show this around to non-Tcl'ers and get
additional 1000 points on the geek-scale...

But seriously: I do not think, that this would be such a bad effect. You can
write

set sin($x) [expr sin($x)]

today, which is also a little bit strange...

Stephan
.



Relevant Pages

  • Re: array question
    ... an example that shows "split" can work on an array. ... EXPR stands for any expression that evaluates to a scalar. ... Command line options can be found in `perldoc perlrun`. ...
    (perl.beginners)
  • Re: Selecting Components
    ... For the record, in Eiffel you'd write array @ expr, ... Haskell uses array!! ...
    (comp.lang.ada)
  • Re: Intel Fortran Compiler Version 9.1 Now Available
    ... James Giles wrote: ... if expr is an array of different shape or any of the corresponding ... length type parameter values of variable and expr differ. ...
    (comp.lang.fortran)
  • Re: Math Functions in Perl
    ... the Coleman-Oman's model for computing a code Maintainability Index. ... perldoc -f log: ... log Returns the natural logarithm of EXPR. ... perldoc -f sin: ...
    (comp.lang.perl.misc)
  • Re: Inverse sin/cos/tan
    ... If you have values for both sin AND cos, you can use atan2: ... % set s [expr ] ...
    (comp.lang.tcl)