[J3] [EXTERNAL] Re: Why is += missing?

Malcolm Cohen malcolm at nag-j.co.jp
Fri Sep 3 00:26:14 UTC 2021


> If we decide to go down this path, then I would very firmly want “+=” to be a distinct assignment operator and allow user defined operations using ASSIGNMENT(+=). 

 

I understand why you’d want to do that in some cases, but it undermines existing modules that provide assignment just plus, or assignment and plus (there not being any that provide the new one anyway!). That is the opposite of protecting existing investments.

 

A single-statement form of ASSOCIATE would certainly be less disruptive than this. We already have single-statement forms of not just IF, but WHERE, and FORALL; the latter already has statement entities (the index variables) just like a single-statement form of ASSOCIATE would have.

 

Cheers,

-- 

..............Malcolm Cohen, NAG Oxford/Tokyo.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20210903/0b0e62d6/attachment.htm>


More information about the J3 mailing list