skaller wrote: > On Sun, 2007-03-25 at 19:06 -0700, Erick Tryzelaar wrote: > >> To get the c-type name of a type, you can do this: >> >> print Debug::repr_type[utiny]; endl; >> >> which prints out: >> >> _us2 >> >> Is there any way to get the felix type name? >> > > Ok, you can now do this: > >
Thanks John for this, and all your other help! > So, now I'll look at another approach: > > fun whatever[t]: unit-> string = "@%^&1" > > or something .. running out of magic codes here .. What about switching to something like: "@type_name$1" or something, where you fully specify the name of the felix directive? Might make it a little more clear what's going on for the more obscure directives. > but this > is quite nasty because the csubst routine will need the > string passed in for every generic type, which means it > has to be calculated on every call. > > This will be 'post virtual function instantiation', but > it will be the bound type name, not the raw type name. > (Because the type variables have been replaced, there > IS no raw typename). > Would it pick up the names of type aliases? If this is going to get real ugly, then it probably won't be worth it. I don't need it that much :) -e ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Felix-language mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/felix-language
