On 12 July 2013 04:35, David Korn <[email protected]> wrote:
> cc: [email protected]
> Subject: Re: [ast-users] ksh -c 'namespace a.c.b { integer i=5 ; } ; ' =>
> a.c.b: is not an identifier?
> --------
>
>> How do I create a nested namespace?
>>
>> I tried this but it fails:
>> ksh -c 'namespace a.c.b { integer i=5 ; } ; '
>> /home/wlin/bin/ksh: a.c.b: is not an identifier
>>
>> Wendy
>>
>
> namespace a
> {
> namespace c
> {
> namespace b
> {
> integer i=5
> }
> }
> }
I still get an error for this:
ksh -c 'namespace a { namespace b { integer i=5 ; } ; } ; printf "%d\n" .a.b.i'
/home/wlin/bin/ksh: printf: .a.b.i: no parent
I don't think this is the right way (semantically) because you can't
switch from namespace a.b.c to namespace b.g.y on the fly.
Wendy
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users