D 嵌套函数类型推断
有谁知道Subj是否会实施? 至少,他们的自动存储类? 谢谢!
Does anyone know if subj will be implemented?
At least, auto storage class for them?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有谁知道Subj是否会实施? 至少,他们的自动存储类? 谢谢!
Does anyone know if subj will be implemented?
At least, auto storage class for them?
Thanks!
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
一般来说,自动功能存在各种问题,因此很可能
由于自动功能的错误而不是按设计设计而无法执行此操作。我不确定具体的计划是什么,但我认为您应该能够使用 auto 作为嵌套函数的返回类型。无论哪种情况,都会有一个增强请求。
但是,无论 auto 是否与嵌套函数一起使用,您都可以以类似的方式声明委托:
因此,基本功能仍然存在,即使您正在寻找的确切语法不存在目前工作。
There are various problem with auto functions in general, so it could very well be that you can't do
because of a bug with auto rather than it being as designed. I'm not sure what the exact plans for that are, though I would think that you would supposed to be able to use auto as the return type of a nested function. There is an enhancement request on it in either case.
However, regardless of whether auto works with nested functions, you can declare a delegate in a similar manner:
So, the basic functionality is still there, even if the exact syntax that you were looking for doesn't currently work.