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

Saagar Jha saagar at saagarjha.com
Mon Feb 27 11:57:26 CST 2017


Hmm, what are you trying to do? The generally accepted way of splitting code between files is through the use of extensions; is this not sufficient for your needs?

Saagar Jha

> On Feb 27, 2017, at 02:45, Rupendra Limbore via swift-users <swift-users 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-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

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


More information about the swift-users mailing list