[Swift-user] #include ?

wilde at mcs.anl.gov wilde at mcs.anl.gov
Wed Jan 27 17:48:45 CST 2010


Yes, Ben added the start of a simple import mechanism:

login2$ cat cati.swift
import catapp;

type file;

file data<"data.txt">;
file out<"out.txt">;
out = cat(data);


login2$ cat catapp.swift
import typedefs;
app (file o) cat (file i)
{
  cat @i stdout=@o;
}

At the moment, the files you import need to be in the dir in which you are running Swift.

- Mike




----- Original Message ----- 
From: skenny at uchicago.edu 
To: swift-user at ci.uchicago.edu 
Sent: Wednesday, January 27, 2010 5:27:41 PM GMT -06:00 US/Canada Central 
Subject: [Swift-user] #include ? 

i heard a rumor once :) that there was a working version of an 
'include' feature of swift such that i may declare functions 
in one script and use them in others...is this in the latest 
swift? i wasn't able to find anything in the doc about it so 
thought i'd check. 

~sk 
_______________________________________________ 
Swift-user mailing list 
Swift-user at ci.uchicago.edu 
http://mail.ci.uchicago.edu/mailman/listinfo/swift-user 



More information about the Swift-user mailing list