The module plan is that you will be able to put your canvas in a  
module of your naming.  Your app will be in that module, and within  
that module, you _could_ have global be an alias for that module.   
Thus, two different apps could be loaded in the same runtime and  
their 'global' would not collide.  (Sort of how two swfs can be  
loaded into different _level's and not have their _root collide).   
For this reason, I think it might make sense to have canvas == global  
== (the user module).

How you would communicate between two apps is a separate discussion.

On 2006-03-24 15:41 EST, Adam Wolff wrote:

> actually, global != canvas in laszlo right now. the promotion of  
> canvas
> children to the global namespace was oliver's idea. it makes for  
> terser
> syntax, but it's a somewhat obscure feature. you can always use id.  
> also,
> if ever wanted to support embedding one laszlo app in another, it  
> could
> cause problems. we just need to deprecate it before we change it.
> A
>
> On Mar 24, P T Withington wrote:
>
>> With the module proposal the 'global' namespace does not have to  
>> == the
>> runtime namespace (i.e., _root for SWF, window for DHTML).  Given  
>> that, should
>> the global namespace (from the point of view of the LZX app) be  
>> the canvas?
>> Is there a benefit to having a global namespace and the canvas in  
>> the global
>> namespace, or did that just fall out of the initial implementation?
>>
>> On 2006-03-24 15:30 EST, Adam Wolff wrote:
>>
>>> in general, a named LzNode that is a child of the canvas also  
>>> puts its
>>> name in the global namespace. I don't recommend changing that.
>>>
>>> I do think canvas.datasets should be deprecated. Just need to fix
>>> LzParsedPath somehow.
>>>
>>> A
>>>
>>> On Mar 24, P T Withington wrote:
>>>
>>>> Right now, when you create a dataset 'foo', it appears as:
>>>>
>>>> global.foo
>>>> global.canvas.foo
>>>> global.canvas.datasets.foo
>>>>
>>>> Do datasets really need all these aliases?  Do they need to have a
>>>> global alias (seems dangerous)?  Do they need an alias on the  
>>>> canvas
>>>> (perhaps, not quite as dangerous, but what's the point).  Is it not
>>>> sufficient to be in canvas.datasets?
>>>> _______________________________________________
>>>> Laszlo-dev mailing list
>>>> [email protected]
>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>>>>
>>

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to