在 DXL 中定义链接的语法错误
Syntax error defining links in DXL
我正在使用简单的 DXL 脚本生成链接。有人可以解释为什么下面指定的行会抛出错误吗?错误是(忽略行号)
-E- DXL: incorrect arguments for (->)
-E- DXL: incorrectly concatenated tokens
-E- DXL: incorrect arguments for function (object)
我对 DXL RefManual (9.3) 中信息的解释是“<-”和“->”对于定义对象的任何方法都是合法的。这里到底发生了什么?
Module modin = edit("/Carl.Witthoft/tablemix",true,false)
if (null(modin)) ack("Error!in")
Module modout = edit("/Carl.Witthoft/77GRCRcopy",true,false)
if (null(modout)) ack("Error!out")
object(479,modout) <- object(22,modin)
// next line throws error
object(22,modin) -> object(479,modout)
/* the following will execute successfully:
Object obin =object(21,modin)
Object obout = object(702,modout)
obout <- obin
obout -> obin
*/
更改以下行:
object(22,modin) -> object(479,modout)
至
(object(22,modin)) -> (object(479,modout))
应该可以。 '->' 运算符可能有点挑剔。
我正在使用简单的 DXL 脚本生成链接。有人可以解释为什么下面指定的行会抛出错误吗?错误是(忽略行号)
-E- DXL: incorrect arguments for (->)
-E- DXL: incorrectly concatenated tokens
-E- DXL: incorrect arguments for function (object)
我对 DXL RefManual (9.3) 中信息的解释是“<-”和“->”对于定义对象的任何方法都是合法的。这里到底发生了什么?
Module modin = edit("/Carl.Witthoft/tablemix",true,false)
if (null(modin)) ack("Error!in")
Module modout = edit("/Carl.Witthoft/77GRCRcopy",true,false)
if (null(modout)) ack("Error!out")
object(479,modout) <- object(22,modin)
// next line throws error
object(22,modin) -> object(479,modout)
/* the following will execute successfully:
Object obin =object(21,modin)
Object obout = object(702,modout)
obout <- obin
obout -> obin
*/
更改以下行:
object(22,modin) -> object(479,modout)
至
(object(22,modin)) -> (object(479,modout))
应该可以。 '->' 运算符可能有点挑剔。