请选择 进入手机版 | 继续访问电脑版

EDABOSS电子论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 837|回复: 0

[转帖] setSGq and getSGq

[复制链接]

14

主题

0

回帖

161

E币

技术员

Rank: 2

积分
28
发表于 2017-5-8 10:43:21 | 显示全部楼层 |阅读模式
Squiggle Arrow (~>) Operator

The squiggle arrow (~>) operator is a generalization of the arrow operator. It works the same way as an arrow operator when applied directly to an object, but it can also accept a list of such objects. It walks the list applying the arrow operator whenever it finds an atomic object.

The underlying functions for ~> operator are the setSGq and getSGq functions, which set and retrieve the value of an attribute or a property. For example,

setSGq(obj value prop)             ; is equivalent to:
obj~>prop=value
a=getSGq(obj prop)                 ; is equivalent to:
a=obj~>prop
info=getSGq(cvId objType)          ; is equivalent to:
info=cvId~>objType
setSGq(rect list(10:10 100:120) bBox) ; is equivalent to:
rect~>bBox=list(10:10 100:120)
积分规则
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|EDABOSS电子论坛

GMT+8, 2023-12-2 17:22 , Processed in 0.042611 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表