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

Re: [FWP] @a ||= (1, 2);



John Porter <jdporter@min.net> writes:

> Tom Christiansen wrote:
> > 
> > But mostly it's better without them.  People would want
> > things like @a + @b to behave differently.  And then we'd
> > get to argue about @a * @b.
> 
> Matrix math!  To paraphrase someone famous,
> "We have to let Fortran be better at something."  :-)

I'd be upset if it supported matrix math without supporting vector
maths.  Of course, there are TWO cross products one can define for
7-element vectors (one "the usual" of 6 such vectors, and another one
of just 2).  I'd like to be the first to suggest overloading
@a*@b*@c*@d*@e*@f for the first and @a x @b for the second (both only
in list context, naturally).

Do new Fortrans (Fortra? Fortruns? Fortrex?) have really have built-in
vector and matrix operations?  I certainly don't remember any such
thing in F77...

-- 
Ariel Scolnicov        |"GCAAGAATTGAACTGTAG"            |ariels@compugen.co.il
Compugen Ltd.          |Tel: +972-2-6795059 (Jerusalem)	\  100% recycled bits!
72 Pinhas Rosen St.    |Tel: +972-3-7658514 (Main office)`--------------------
Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555  http://3w.compugen.co.il/~ariels

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe