David, how can I test if a array is entirely made out of compound variables or type variables, i.e. is one of: compound -a array compound -A array typeset -T a_t=(...) ; a_t -a array typeset -T a_t=(...) ; a_t -A array
I tried this code: ... array_np = nv_open("array", shp->var_tree, NV_VARNAME|NV_NOFAIL|NV_NOADD); ... if (!nv_isattr(array_np, NV_COMVAR)) { puts("nv_isattr(array_np, NV_COMVAR) failed."); } if (!nv_isvtree(array_np)) { puts("nv_isvtree(array_np) failed."); } ... The code will print this in all 4 cases: nv_isattr(array_np, NV_COMVAR) failed. nv_isvtree(array_np) failed. Which leaves me confused, how I can test if the array is entirely made out of compound variables or type variables. Olga -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ olga.kryzhanov...@gmail.com \-`\-'----. `'-..-| / http://twitter.com/fleyta \ |-..-'` /\/\ Solaris/BSD//C/C++ programmer /\/\ `--` `--` _______________________________________________ ast-developers mailing list ast-developers@research.att.com https://mailman.research.att.com/mailman/listinfo/ast-developers