View Single Post
Old April 17, 2015, 21:14   #19
Dean Anderson
Join Date: Nov 2009
Posts: 127
Dean Anderson is on a distinguished road
Originally Posted by AnonymousHero View Post
I actually wondered at one point whether one should just copy everything into a single class (aside from pure struct declarations, etc., obviously), get that working and then just start using IDE refactorings to split things out.

It'd be a monster file (~140SLOC for T2.x on current master), but it really would be "just" a matter of going through from one end to the other. (Of course now you have to deal with clashing compilation-unit local statics, but I bet that's a smaller problem.)
I should have thought of that. In C# it wouldn't even need to all be in a single monster file because you can use the "partial" keyword when defining a class to indicate that it's split between files.
Dean Anderson is offline   Reply With Quote