Will there be a Target for plain ol' "C" ?

Monkey Targets Forums/User Targets/Will there be a Target for plain ol' "C" ?

vmars316(Posted 2013) [#1]
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


GW_(Posted 2013) [#2]
I doubt it very much, Monkey is class oriented.


therevills(Posted 2013) [#3]
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?


vmars316(Posted 2013) [#4]
<< what do you want a C target for, is it for console apps or for games? >>
Console apps , games , and LearningTool ...vm


armornick(Posted 2013) [#5]
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.


impixi(Posted 2013) [#6]

and I don't even know how you would do generics.



Probably by utilizing void pointers.


Gerry Quinn(Posted 2013) [#7]
Maybe you could use the C++ output (GLFW target) as a halfway house.


ziggy(Posted 2013) [#8]
generics are solved by trans in Monkey.


slenkar(Posted 2013) [#9]
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