“使用”或“导入”埃菲尔文本中的条款

发布于 2024-11-18 09:42:44 字数 82 浏览 9 评论 0原文

是否有包含/使用/导入其他类的子句,或者可能是 EiffelStudio 中的“添加库”部分?如果是这样,您将如何在基于文本编辑器的环境中执行此操作?

Is there a clause for including/using/import other classes, or maybe that's the Add Library part in EiffelStudio? If so, how would you do it in a text editor based environment?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小姐丶请自重 2024-11-25 09:42:44

在 Eiffel 中,没有与 C/C++“include”等效的内容。当您描述您的项目(在 ecf 文件中)时,您会指出哪些集群和库是您系统的一部分。集群基本上是包含 Eiffel 类的文件夹。编译时,Eiffel 编译器会扫描所有集群/库中的 .e 文件。您可以使用所有或任何这些类,而不需要任何“include”指令。

In Eiffel there is no equivalent of the C/C++ "include". When you describe your project (in the ecf file) you indicate which clusters and libraries are part of your system. A cluster is basically a folder containing Eiffel classes. When you compile, the Eiffel compiler goes and scans all your clusters/libraries for .e files. You can use all and any of those classes without the need for any "include" directive.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文