[Swift-user] Re: extern data type undefined.

Allan Espinosa aespinosa at cs.uchicago.edu
Tue Feb 24 17:31:37 CST 2009


I looked in src//tests/language-behaviour/087-external-dataset.swift
it is actually the "external" data type. the script now works.

so there's a typo in the documentation.

-Allan

On Tue, Feb 24, 2009 at 5:14 PM, Allan Espinosa
<aespinosa at cs.uchicago.edu> wrote:
> 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
>



-- 
Allan M. Espinosa <http://allan.88-mph.net/blog>
PhD student, Computer Science
University of Chicago <http://people.cs.uchicago.edu/~aespinosa>



More information about the Swift-user mailing list