[Swift-user] extern data type undefined.

Allan Espinosa aespinosa at cs.uchicago.edu
Tue Feb 24 17:14:33 CST 2009


Hi,

I am trying to use the "extern" data type as documented in the swift
manual.  for some reason, the parser does not see this type as already
defined:

~/swift/vdsk/bin/swift -tc.file tc.data manysmall.swift

Could not start execution.
        Type extern is not defined.

Swift script:
type data;

app (extern o) dd(string input) {
  echo "if=" @input "of=/dev/null" "bs=128k";
}

data input<ext;exec="mapper.sh">;

foreach x in input {
  extern o;
  o = dd(@x);
}


-Allan



More information about the Swift-user mailing list