简体   繁体   中英

Can entity variables be functions?

Since functions and actions are first-class, is it possible for an entity variable to hold a function? Historically that was not the case; entity variables could only be flags, counters, trails, or literals.

A corollary to that, if the answer is true. Can a function be defined in a postlude and assigned directly to an entity variable?

(This is a question from the CS 462 mailing list .)

否。实体变量只能包含字符串和数字,数组,结构及其任何组合。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM