Why not extend array operations to full Fortran90 power ?

Robert Jacques sandford at jhu.edu
Wed Nov 16 17:53:59 PST 2011


On Wed, 16 Nov 2011 14:08:33 -0500, Joachim Wuttke <j.wuttke at fz-juelich.de> <j.wuttke at fz-juelich.de> wrote:
> Compare
>
>    (1)  Y[] = X[]*X[];
>    (2)  Y[] = sin( X[] );
>
> With gdc 4.4.6,
>    (1) compiles and executes as I expected, whereas
>    (2) is not allowed (fails at compile time).
> Why?
>
> The semantics of (2) is unambiguous,
> and it works perfectly well in Fortran90.
> Allowing (2) would make D really attractive
> for formula-heavy mathematical work.
>
> - Joachim

Lack of developer man-hours. This has actually been discussed before and is on Don's bubble list, IIRC, but there are a lot of other bug to fix before it.


More information about the Digitalmars-d mailing list