Re: dmt: Python-like indentation in D programming language
I changed the body to do, and added pure @nogc and your program compiled. But I did not like it. I didn't find the program useful. I highly doubt this program will please D programmers. I have a request. Please make a version of your program that just makes the use of the semicolon (;) optional just like in JavaScript. This would be very useful for D programmers.
Re: dmt: Python-like indentation in D programming language
Your dmt.d not compile for exe in Windows with last version of dmd 2.099.0 dmt.d(71): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. dmt.d(125): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. dmt.d(206): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. dmt.d(234): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. dmt.d(212): Error: `pure` function `dmt.check_if_can_indent` cannot call impure function `dmt.strcmp_first2` dmt.d(212): Error: `@nogc` function `dmt.check_if_can_indent` cannot call non-@nogc function `dmt.strcmp_first2`