g***@gmail.com
2020-03-27 12:00:54 UTC
I want to interface with C code whose return a C string which is an array of char. I found it to be impossible.
So I tried to declare a new type as array of char but it is impossible, too.
To last resort I tried to declare a new type as pointer to char, then it is impossible too as the compiler will not allow pointer to non record type.
I stuck at this stage because if I can't write the declaration module in Oberon how could I go further to do the actual implementation in C source file?
Oberon is viewed as a compact and beautiful language but if it's too limited like that it's too useless for any practical purpose other than an academic research project.
So I tried to declare a new type as array of char but it is impossible, too.
To last resort I tried to declare a new type as pointer to char, then it is impossible too as the compiler will not allow pointer to non record type.
I stuck at this stage because if I can't write the declaration module in Oberon how could I go further to do the actual implementation in C source file?
Oberon is viewed as a compact and beautiful language but if it's too limited like that it's too useless for any practical purpose other than an academic research project.