On Tuesday, July 16, 2013 08:58:12 AM Janis Papanagnou wrote:
> 
> > > 
> > > > Hi, here x.val is assigned after the constructor has already run. It 
> > > > should
> > > > be assigned before so it's accessiable to the "create":
> > > > 
> > > > typeset -T X=( integer val
> > > > 
> > > >     function create { ((_.val++)) })
> > > > 
> > > > X x=(val=5) print -v x.val # should print 6
> > > > 
> > > 
> > > ksh93 currently doesn't have a create discipline and you example doesn't
> > > invoke x.create so why should val be incremented?
> > 
> > It's described within the "TYPES" document:
> 
> What is that document you mention and where can I find it?
> 
> And more generally; is there any detailled documentation of
> ksh's new features besides the man page?
>

It isn't all that detailed, and hasn't been updated lately, but it's the best 
I've found.

http://www2.research.att.com/~gsf/cgi-bin/git/gitweb.cgi?p=ast-open;a=blob;f=src/cmd/ksh93/TYPES;h=6eb6f41b5ea37b3d8e34911cc6322b94d6541b04;hb=HEAD
                                          
-- 
Dan Douglas
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to