“使用”或“导入”埃菲尔文本中的条款
是否有包含/使用/导入其他类的子句,或者可能是 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 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.