立即注册 登录
Cadence Skill 论坛 返回首页

hyper的个人空间 http://www.allegro-skill.com/?8496 [收藏] [复制] [分享] [RSS]

日志

第5课学习

已有 1331 次阅读2017-6-16 16:07

axlCmdRegister("dayout" 'myfunc)

procedure(myfunc(fun @rest args)
printf("Calling %s passing %L" fun args)
result=apply(fun args)
printf("\nReturning from %s with %L\n" fun args)
result
);end procedure
输出:
Skill > myfunc('plus 1 2 2)
Calling plus passing (1 2 2)
Returning from plus with (1 2 2)
5
Skill > myfunc('plus 2 3 4 5 6 7)
Calling plus passing (2 3 4 5 6 7)
Returning from plus with (2 3 4 5 6 7)
27
Skill > 



路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

Archiver|手机版|网站地图|Cadence Skill 论坛 ( 蜀ICP备13024417号 )

GMT+8, 2024-5-7 20:32 , Processed in 0.114741 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

返回顶部