[Swift-devel] app names with "-"

Veronika V. Nefedova nefedova at mcs.anl.gov
Wed Apr 25 13:44:42 CDT 2007


I did a typo in the name of the procedure: I typed "test-in" instead of 
"test_in". And started to get a lot of syntax errors. Apparently the "-" is 
not allowed in swift names?
I did a quick test, and it [proved that swift doesn't like the "-":

type file {}
(file f) ec-ho (string s) {
     app {
         echo s stdout=@filename(f);
     }
}
file f <"testoutput">;
f=ec-ho("BLA");

And this wouldn't compile while it would compile just fine when you do 
s/ec-ho/echo/g
This is probably not right.

Nika




More information about the Swift-devel mailing list