On Monday, 14 May 2018 at 07:03:35 UTC, Dukc wrote:
------------ module test; void main() { foo.i = 2; } void foo() { static int i = 1; } ------------
nice, .. I like it... I mean who really needs a function interface anyway?
D may as well just get rid of that encapsulation concept too, since the class interface is pretty much moot in D modules.
Maybe.. we should even, just completely get rid of functions and classes - as well as all that other stupid so-called 'structured programming' crap, which just restricts us, and revert to 'real' programming - using just line numbers and goto statements. Then, finally, we programmers can do whatever we want again.
Local reasoning...it's so old-school.