j3-fortran / generics

BSD 3-Clause "New" or "Revised" License
38 stars 8 forks source link

Example implementations of templates to emulate selected intrinsic procedures #86

Closed everythingfunctional closed 2 years ago

tclune commented 2 years ago

Another thought ala Magne's use of sub-templates for optional arguments. Imagine a GeneralizedIntrinsics template that takes a type T. It then has subtemplates for things that need equals or less, etc. Not sure how fruitful it would be, but might be a good tutorial case to show the power?

everythingfunctional commented 2 years ago

Another thought ala Magne's use of sub-templates for optional arguments. Imagine a GeneralizedIntrinsics template that takes a type T. It then has subtemplates for things that need equals or less, etc. Not sure how fruitful it would be, but might be a good tutorial case to show the power?

That's possibly an interesting use case. Might be worth discussing/exploring at the next meeting.