Re: [Vala] Rv: C to Vala



Once the Vala to C rules are defined, the inverse rules should work for C to vala, at least in a 80%
----- Mensaje original -----
De: Landon Blake <sunburned surveyor gmail com>
Para: Mario Daniel Ruiz Saavedra <desiderantes rocketmail com>
CC: 
Enviado: Jueves, 20 de septiembre, 2012 12:47:10
Asunto: Re: [Vala] Rv: C to Vala

It would be possible to take a program that translates English to
Spanish and make it translate Spanish to English, but I think it would
take some major tweaking. I'm sure the same concept applies to the
Vala compiler.

Landon

On Thu, Sep 20, 2012 at 10:23 AM, Mario Daniel Ruiz Saavedra
<desiderantes rocketmail com> wrote:
valac takes Vala code, analyzes it, and generates C code accordingly. What hinders it from making it the 
other way (taking c code which heavily uses GLib, and turning it into Vala Code)? Also, whould prove 
correctness, as doing Vala to C and then C to Vala should produce similar code.
----- Mensaje original -----
De: Landon Blake <sunburned surveyor gmail com>
Para: Mario Daniel Ruiz Saavedra <desiderantes rocketmail com>
CC:
Enviado: Jueves, 20 de septiembre, 2012 11:38:53
Asunto: Re: [Vala] Rv: C to Vala

Mario:

I've just started using Vala, but I think I can take a stab at your questions.

Vala is compiled to C, C is not compiled to Vala. Therefore, I don't
think there would be an easy and automated way to convert C code into
Vala code.

Does that make sense?

Landon

On Wed, Sep 19, 2012 at 4:05 PM, Mario Daniel Ruiz Saavedra
<desiderantes rocketmail com> wrote:
I'll resend this, hoping for an answer :D


----- Mensaje reenviado -----
De: Mario Daniel Ruiz Saavedra <desiderantes rocketmail com>
Para: Vala List <vala-list gnome org>
CC:
Enviado: Viernes, 17 de agosto, 2012 0:28:58
Asunto: C to Vala



Is it possible that, having a program written in C, making full use of GLib, a conversion from c to vala 
would be plausible? Obviously, rewrite the application should be the way to go, but at least for giving an 
overview of how the new design may look, especially if you did not write the app, such feature would be 
useful.
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]