David Korn schrieb:
Subject: Re: Re: [ast-developers] typeset: memory fault
--------
To create an arry of X_t just use
X_t -a arr
since when you create a type, a builtin of that name is created with
some of the typeset arguments.
X_t --man
will give the man page.
Thanks. However, this doesn't appear to work if the type definition is
in a separate file:
# file X_t
typeset -T X_t=(
typeset xx=foo
)
# file tst
X_t x1
print $x1
X_t -a arr
ksh tst
Output:
( xx=foo )
tst: line 2: : type cannot be redefined
tst: X_t: function not defined
Another quesion: Is an assignment like "typeset -a=(...)" supposed to
work as well? After replacing the last line in tst by "X_t -a arr=()", I
get:
tst: line 4: syntax error at line 5: `(' unexpected
Regards,
Bernd
--
Bernd Eggink
[EMAIL PROTECTED]
http://sudrala.de
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers