首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OPA语法问题

OPA语法问题
EN

Stack Overflow用户
提问于 2011-07-06 19:37:22
回答 1查看 207关注 0票数 3

我在stdlib和一些github项目中看到过。类似这样的代码:

代码语言:javascript
复制
MyClass =

  field_id(id) = "{id}_field"

{{

my_func(args) = output

}}

在{{ }}块之前有什么有趣的函数??

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-07-06 19:53:40

它将函数声明为模块的私有函数。等同于:

代码语言:javascript
复制
MyClass = {{

  @private
  field_id(id) = "{id}_field"

  my_func(args) = output

}}
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6595735

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档