On Dec 24, 2009, at 12:33 , Bee Jay wrote:

>> We were talking about the structural aspect of the transformation :  
>> classes in Pascal -> classes in js, ...
>> But what about behavioral transformation : Pascal code -> js code ?
> 
> Well, actually qxPascal would not converting pascal code to js code,  
> but converting qooxdoo classes in pascal to qooxdoo classes in js.  
Hey but your qooxdoo classes in Pascal will have behavior, method to code the 
listeners, what to do on OK button, do things, isn't it ?

> qxPascal isn't gonna convert pascal language into js language as what  
> is done by GWT. It's too complicated for me. :D
> 
> The root class of all qooxdoo classes in pascal will act as the js  
> code generator.
I would suggest a visitor pattern instead so the generator will be kept 
independent of the Pascal instances graph that define the GUI.

> More detail information about the way it works can be  
> studied on ExtPascal project site (http://extpascal.googlecode.com). ;)
> 
Would you resume the project goal as "no behavior qooxdoo  classes defined 
Pascal -> no behavior qooxdoo  classed in js ?????
I hope no, because otherwise, sorry to be direct, I don't see any interest !

There would not be any added value (I'm doing it in Java instead of Pascal to 
illustrate my question) to use :

Public class SpecialUI {
        protected qooxdooButton OKButton = new qooxdooButton():
}

to produce 

qx.Class.define("SpecialUI", {
    construct : function() {
        this.base(arguments);
        this. OKButton = new qooxdooButton();
    },

    members : {
        qooxdooButton : OKButton,
   }
}

> -- 
> 
> -Bee-
> 
> ...making buzzes at http://twitter.com/beezing
> ...writing stories at http://beeography.wordpress.com
> 
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to