feat: enable extern declarations to be contingent on OS or target language #3030
Labels
area: ffi
The {:extern} attribute and otherwise interfacing with code in other languages
kind: enhancement
Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny
What is the feature you would like to see in a future version of Dafny?
I propose extern declarations be allowed to have syntax like
{:lang java :extern ... }
{:os windows :extern ... }
The declaration would be ignored if the language and/or OS do not match.
Any location that permits :extern declaration would be allowed to have multiple mutually-exclusive such declarations
Allowing this would simplify the interface to the native variations of library functionality
The text was updated successfully, but these errors were encountered: