I also learned this recently, and here on Discourse: Overloading functions with optional arguments - #18 by ashe.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Bug or undefined behaviour in passing zero-sized arrays as optional argument? | 3 | 570 | November 16, 2021 | |
How do optional variables work?
|
2 | 459 | January 7, 2024 | |
Inquire status of (non)allocatable arrays
|
16 | 796 | November 5, 2023 | |
Can an OPTIONAL, VALUE argument be set if not PRESENT? | 7 | 528 | January 11, 2024 | |
Passing element of an optional array as optional scalar argument | 21 | 1022 | August 16, 2024 |