[swift-users] [swift-server-dev] Need a way to include swift file into another swift file

Max Moiseev moiseev at apple.com
Mon Feb 27 12:12:34 CST 2017


You should be able to simply pass multiple source files to the Swift compiler and get a single compiled output.

Max

> On Feb 27, 2017, at 2:45 AM, Rupendra Limbore via swift-server-dev <swift-server-dev at swift.org> wrote:
> 
> Hi All,
> 
> I am using swift as a CGI script with Apache server (just to explore). I need to split my code into different files so as to make it more manageable. Is there any way I can include one swift file into another, like we can do in PHP with “include_once”?
> 
> 
> 
> Best Regards,
> Rupendra Limbore
> 
> _______________________________________________
> swift-server-dev mailing list
> swift-server-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-server-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170227/e4a36620/attachment.html>


More information about the swift-users mailing list