Will there be a Target for plain ol' "C" ?
Monkey Targets Forums/User Targets/Will there be a Target for plain ol' "C" ?
| ||
| Hello & Thanks , Just hoping that there will be a Target for plain ol' "C" . Not C# or C++ , just plain ol' C . Preferably , 'Pelles C' Thanks...Vernon |
| ||
| I doubt it very much, Monkey is class oriented. |
| ||
| JavaScript doesn't have classes per se but that's a Monkey target. @vmars316, what do you want a C target for, is it for console apps or for games? |
| ||
| << what do you want a C target for, is it for console apps or for games? >> Console apps , games , and LearningTool ...vm |
| ||
| JavaScript may not have classes but at least has an easy way to implement classes. If you'd make a C target, you'd have to use structs; translate every method call to a function call; turn every object into a pointer and be careful not to leak memory; find a way to implement modules and scoping; and I don't even know how you would do generics. |
| ||
| and I don't even know how you would do generics. Probably by utilizing void pointers. |
| ||
| Maybe you could use the C++ output (GLFW target) as a halfway house. |
| ||
| generics are solved by trans in Monkey. |
| ||
| Ive been doing some spectrum programming recently, if monkey had a C target it could do Spectrum games. It would have to be limited to arrays only though, and structs maybe, and declare all variables at the beginning of all functions |