David Korn schrieb:
cc: [email protected] Subject: Re: Re: [ast-developers] More type problems --------There is still a problem if A_t contains an array declaration like typeset -T A_t=( B_t -a b ) This causes a segmentation fault.I hadn't considered this case so this is a bug. Do you think that this object oriented extension to ksh93 will be useful?
Yes, I think it will be very useful, especially with respect to encapsulation. It provides a reliable way of avoiding name collisions, which is hard to achieve otherwise. On the other hand, there are considerable consequences, which I don't overwiew at the moment. For example, if B_t is nested into A_t, how does a B_t function access variables of the outer type A_t?. Will this lead to expressions like A.B.C.this in Java?
I also see a certain danger of the shell syntax getting overloaded (I'm getting old... and the older I get, the more I like simplicity). And I wouldn't drive the typing (and type checking) too far, as it would probably bloat the code and slow down the execution.
Regards, Bernd -- Bernd Eggink [EMAIL PROTECTED] http://sudrala.de _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
