[OpenSCAD] Why a semicolon right after module definition line not a syntax error

Ivo ivo.knutsel at gmail.com
Sun Apr 1 03:58:52 EDT 2018


MichaelAtOz wrote
> runsun wrote
>> I still think that a statement like "module m();" should be an error.  It
>> seems to serve no purpose other than confusing users. 
> 
> module null(); is quite useful.

module null() {}; 

would do the same and not break syntax.

Cheers, Ivo



--
Sent from: http://forum.openscad.org/



More information about the Discuss mailing list