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-...@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-...@swift.org
> https://lists.swift.org/mailman/listinfo/swift-server-dev

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to