Re: not putting names of dataset so many places
Jim Grandy <jgrandy <at> openlaszlo.org>
2006-05-01 21:17:33 GMT
We're just working out a proposal. Nothing's set in stone yet.
We also don't have a 3.3 schedule -- 3.2.1 is what's going out the
door soon.
On May 1, 2006, at 1:49 PM, John Sundman wrote:
> OK.
>
> if this is going into 3.3 I need to get right on it.
>
> Just to be sure I understand this, can I see some examples please?
>
> jrs
>
> On May 1, 2006, at 3:58 PM, Jim Grandy wrote:
>
>> I'd be in favor of the following:
>>
>> - add a 'global:' axis to match the 'local:' axis
>>
>> - force use of <at> id attribute for global datasets -- that is, don't
>> register in global/canvas namespace at all unless <at> id is given
>>
>> We could add the 'global:' axis in 3.3 with declaration without
>> <at> id deprecated in that release, and then require <at> id for global
>> datasets in 4.0. We'd also make 'global:' the default in 3.3, and
>> 'local:' (or neither) the default in 4.0.
>>
>> I think this would be the cleanest and simplest -- <at> id is how you
>> namebind in global namespaace, period. Just like HTML/CSS. Also,
>> making 'local:' axis the default would match our move in the
>> components to more data-driven design -- local datasets should be
>> more common in 4.0 than global datasets.
>>
>> I haven't thought deeply about the compat issues here, but I think
>> this is pretty straightforward.
>>
>> jim
>>
>>
>> On May 1, 2006, at 9:59 AM, Henry Minsky wrote:
>>
>>> Tucker asked at one point if we could cut down the number of
>>> different places
>>> we put in a pointer to a dataset.
>>>
>>> We've got these three in the LzDataset.setName method:
>>>
>>> if ( this.oncanvas ){
>>> global[ name ] = this;
>>> canvas[ name ] = this;
>>> } else {
>>> // it's local - add the parent's UID
>>> name = this.parent.getUID() + '.' + name;
>>> }
>>>
>>> canvas.datasets[name] = this;
>>>
>>> Would this be a good time to clean this up a little and pick one
>>> (or two) of the these choices?
>>>
>>>
>>> --
>>> Henry Minsky
>>> Software Architect
>>> hminsky <at> laszlosystems.com
>>>
>>> _______________________________________________
>>> Laszlo-dev mailing list
>>> Laszlo-dev <at> openlaszlo.org
>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>>
>> _______________________________________________
>> Laszlo-dev mailing list
>> Laszlo-dev <at> openlaszlo.org
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>