Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include one Dafny file in another

Tags:

dafny

I want to reuse the same Dafny code in several programs. Is it possible to include one Dafny file in another? The manual does not describe any way to do it.

like image 772
lexicalscope Avatar asked Feb 20 '26 17:02

lexicalscope


1 Answers

Yes, in December 2013 support for an "include" statement was added to Dafny, the syntax is:

include "Includee.dfy" 
like image 56
lexicalscope Avatar answered Feb 27 '26 10:02

lexicalscope



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!