Hi, I implemented a new scope in ecpp as default - the file scope. Scopevariables defined without scope attribute has this new file scope. That means, that variables defined in the same file are shared. So if you use <%include> to read scope definitions the variables are shared between all components, which use the same <%include>. It is really great for the mvc concept. Now we can just define the model variables without scope="global" since the variables are automatically shared. It sounds complicated but I feel it is just natural.
I try to explain it with a example. We have a controller "controller/page1.ecpp" and a view "view/page1.ecpp" and a model "model/page1.ecpp" the controller and view use <%include> to define the model. The model defines scoped variables without any scope attribute. Both pages see the same instances of the model variables. Previously the model needed to use scope="global" to be visible to both. If the same variable is defined in "model/page2.ecpp" it was in conflict to the one in "model/page1.ecpp" but now they are not any more. Tommi ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
