On Mon, 2007-07-09 at 15:50 -0700, Erick Tryzelaar wrote: > > PS - I have this habit of calling my files > > 1hello.x 2hello.x....when I try examples with > > incremental compelxity (so I can type the number > > and hit tab). But this failed with a weird cpp > > error ....guess, I cannot name files that does > > not begin with a 'letter'. :) > > Oh thats interesting! I have no idea what will happen if you do that :)
Yes you do .. you worked on the code that translates these names :) The story here is: the file basename is used as a top level module name, and it must be a valid Felix and C++ identifier. There is a piece of code in the compiler which 'mangles' these names to valid ones, replacing '-' with _hyphen_ for example .. looks like the 'Initial character is a digit' case was missed. You also don't want to call your file 'goto.flx' because goto is a keyword. The mangler is supposed to translate keywords too. -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language