On Monday, July 29, 2013 01:19:10 PM Roland Mainz wrote:
> On Mon, Jul 29, 2013 at 9:37 AM, Dan Douglas <[email protected]> wrote:
> > On Wednesday, July 24, 2013 12:40:01 PM David Korn wrote:
> >> cc:  [email protected]  [email protected]
> [snip]
> >                 # Static method
> >                 typeset -fS totalpop
> >                 function totalpop {
> >                         printf 'Total population is currently %d.\n' 
> > "${_.population}"
> >                 }
> >         )
> 
> (Minor ?!) nit: ksh93 doesn't support static functions in typeset -T
> ... AFAIK you want namespaces in this case...
> 

>From the manpage:

"The -S can be used with discipline functions defined in  a  type  to  indicate 
that  the  function is static.  For a static function, the same method will be 
used by all instances of that type no matter which instance references it.  In 
addition, it can only use value of variables from the original type definition. 
 These discipline functions cannot be redefined in any type instance."

Or did you mean something else?

-- 
Dan Douglas
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to