Do Objective-C or MATLAB/Octave have source file extensions besides .m? I ask because I’m putting Hello World programs in a single folder and I can’t have two hello.m files.
Do Objective-C or MATLAB/Octave have source file extensions besides .m ? I ask because
Share
A workaround would be to use
.mmfor Objective-C..mmis used for Objective-C++ source files and it is a superset of Objective-C so it should compile fine.This is by no mean a clean solution. A much better way would be to reorganize your folder into subfolders as suggested by Ruddy Velthuis, or simply to call your source files
hello-objective-c.mandhello-matlab.m.