Easy GUI and OOP utility?
Hello! I'm considering a utility to add easy GUI and OOP to C by syntatic sugar form them...
It would allow a kind of:
Code:
void showMes(){
notice "Thanks for choosing Hello World!";
}
void winDeath(){
close mywin;
}
int main(int argc, char **argv){
create button "Click me!", 10, 10, 15, 25, showMes() as mywin.but;
create window "Hello World", 300, 250, 25, 25 as mywin;
pointend mywin, winDeath();
returnctr;
}
This and some OO like C++:
Code:
#include <stdio.h>
class myclass{
int add(int a, int b){
return a+b;
}
}myclass;
int main(){
myclass myob;
int x;
x = myob.add(5,6);
printf("%d is answer!",x);
}
This code would be translated to plain C + GTK(if you are using GUI) and then compiled(as per instructions).
Do this have any commercial future or I'm just gonna waste my time??
Your views on it...
(I wouldn't tell name/link of this so to avoid adverting....)