[Laszlo-dev] what do to with dependency functions when porting code to swf9

P T Withington ptw at pobox.com
Wed Jan 30 14:00:40 PST 2008


I'm using this convention elsewhere:

$lzc$set_foo

for foo's setter method, so lets use:

$lzc$dependcencies_foo

My reasoning:  $lzc$ is representing the internal compiler  
'namespace' (someday can be replaced with $lzc:) and we control that  
namespace so don't have to worry about user collisions.  Then I am  
just prepending a unique tag that describes what is really going on,  
like 'set_' for a setter method, so 'dependencies_' for a dependencies  
method.

On 2008-01-30, at 16:08 EST, Henry Minsky wrote:

> Code that declares constraint dependencies by annotating the method
> will not work in swf9
>
>     prototype.getText.dependencies = function(who, self) {
>   return [ self, "text" ];
>    }
>
> or
>
>  prototype.getAttributeRelative.dependencies = function( who,self,  
> prop ,
>                                                       refView ){
>
> for now let's make the dependency function into a well-known  method
> name by appending "$dependencies$" to the method name, like
> $dependencies$getAttributeRelative
>
> Then we'll figure out how to make the compiler find them..
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com



More information about the Laszlo-dev mailing list