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 | 571 | November 16, 2021 | |
How do optional variables work?
|
2 | 499 | January 7, 2024 | |
Inquire status of (non)allocatable arrays
|
16 | 813 | November 5, 2023 | |
Can an OPTIONAL, VALUE argument be set if not PRESENT? | 7 | 539 | January 11, 2024 | |
Can I guarantee `allocatable` variables to start out not allocated? | 5 | 261 | November 23, 2024 |