Closed Dlougach closed 3 years ago
All fair points. Right now, part of solution code for TopCoder is generated by hardcoded logic inside caide.
// caide keep
. Will that work for you?// caide keep
comments, is also possible and has been on my TODO forever. But workarounds are easy enough, so I never bothered...2. Somehow magically figure out that in topcoder that constructor will be called. While we are at it maybe the same can be done with the main method.
This will be included in the next release.
I tend to have put some precalculations into the constructor for TopCoder solutions. Unfortunately, I found out the hard way that without "caide keep" comment it simply removes that constructor. I suggest 2 options:
1) Make it possible to configure the topcoder template in such way that it always adds default constructor with the "keep" comment. 2) Somehow magically figure out that in topcoder that constructor will be called. While we are at it maybe the same can be done with the main method.