[J3] New intrinsic XXX_PREFIX and XXX_SUFFIX procedures

Brad Richardson everythingfunctional at protonmail.com
Thu Jan 26 23:52:18 UTC 2023


Hi Van,

I'm not quite sure I understand the use case your suggesting. What would it mean to provide an enumerator as an OPERATION? Can you provide an example?

Regards,
Brad

On Thu, 2023-01-26 at 10:45 -0800, Van Snyder via J3 wrote:

> On Thu, 2023-01-26 at 16:52 +0000, Brad Richardson via J3 wrote:
>
>> I've been pondering this more, and I think the way I'd like to propose
>> this is as a single new intrinsic. I think it could in theory be named
>> SCAN, as the interface would be fully distinguishable from the existing
>> SCAN intrinsic for character set membership search. The interface would
>> be:
>>
>> SCAN(ARRAY, OPERATION[, IDENTITY, DIM, MASK, SEGMENT, EXCLUSIVE,
>> REVERSED, ORDERED])
>
> There should be two varieties of OPERATION. One would be an enumerator of an enumeration type defined in ISO_Fortran_Env. The other would be a two-argument function provided by the user.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20230126/6e44ec58/attachment.htm>


More information about the J3 mailing list