[Laszlo-user] Whether good for using private parameter

P T Withington ptw at openlaszlo.org
Mon Jun 18 08:18:30 PDT 2007


Of course, if you need to access a private parameter, perhaps the API  
is not designed correctly.  We are open to improvements!

On 2007-06-18, at 11:11 EDT, mt1 wrote:

> Thank you Tucker.
> I can see a lot of 'private' parameter in sample codes at ML and  
> Forum.
> I think it is not good.
> We will be careful from now on. :^)
>
> mt1
>
>
> P T Withington wrote:
>
>> Exactly as you say. Names that start with `_` are private by
>> convention and may be changed without notice. This is only a
>> convention, and is not currently enforced by the compiler, so you can
>> access those names, but you do so at your own risk. Private names may
>> be enforced in the future for efficiency, but they cannot be  
>> relied on
>> for security.
>>
>> On 2007-06-13, at 22:36 EDT, mt1 wrote:
>>
>>> Hi forks,
>>>
>>> I have thinking, it is good to use private parameters in a LZX
>>> application.
>>> I mean they are the name of parameters, such like '_**' .
>>>
>>> Because they are undocumented code, and i think it would be hard to
>>> understand for
>>> new comer to use them in a application. And also, there will not
>>> announcement if they will
>>> be deprecated.
>>>
>>> I understand you can create a application to use them but in the
>>> maintenance stage of it,
>>> we come up against to chase it so hard.
>>>
>>> What do you think of it and are there any good way to use private
>>> parameters ?
>>>
>>>
>>> Thank you.
>>> mt1
>>>
>>
>>
>>
>



More information about the Laszlo-user mailing list