[swift-server-dev] [swift-users] Need a way to include swift file into another swift file
cktung at mac.com
Tue Feb 28 01:33:27 CST 2017
May be you could use generic preprocessor like gpp
gpp --include a.swift b.swift -o c.swift
> Jens Alfke via swift-users <swift-users at swift.org> 於 2017年2月28日 下午3:19 寫道：
>> On Feb 27, 2017, at 2:45 AM, Rupendra Limbore via swift-users <swift-users at swift.org> wrote:
>> I am using swift as a CGI script with Apache server (just to explore).
> Are you treating Swift like a shell-script, by putting a “#!” at the top of the file? That works, but it’s going to be terribly slow for a CGI script because the source code has to be compiled for every... single… HTTP… request.
> It would be much more efficient to compile the Swift to an executable file, and then use that file as the CGI. And that will solve your multiple-source-files problem too.
> swift-users mailing list
> swift-users at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-server-dev