Cache数据库符号表

Symbol Name and Usage
[space] or [tab]

White space (Tab (9) or Space (32)): Leading white space (space or tab) is required before every line of code, with the exceptions of labels, and some commentlines.

Within commands, one (and only one) space is required between the command name and the first argument.

Trailing white space (space or tab) is required between the last command argument and any following command or comment on the same line. Trailing whitespace is also required between a label and a following command or comment on the same line.

[two spaces, two tabs, or a space and a tab] Double white space: Trailing double white space required between an argumentless command and the next command on the same line.
!

Exclamation mark (33): OR logical operator (full evaluation).

In READ and WRITE commands, specifies a new line.

As first character at terminal prompt, load interactive subshell.

"

Quotes (34): Used to enclose string literals. In Dynamic SQL used to enclose the SQL code as a string argument of the %Prepare() method.

For differences between straight quotes (") and directional quotes (“ ”). see Pattern Matching in Using Caché ObjectScript.

""

Double quotes: Used to specify the null string (""), which is a zero-length string.

Used to specify a literal quote character within a quoted string.

#

Pound sign (35): Modulo division operator. Can be used to determine a bit value. For example, $ZA#2 returns the 1’s bit value (0 or 1); with the integer divide (\) operator $ZJOB\1024#2 returns the 1024’s bit value (0 or 1).

In READ and WRITE commands, form feed. In fixed-length READ, number of characters to read.

Prefix for referencing the value of a class parameter from within the class: #ParameterName.

Prefix for many macro preprocessor directives such as: #Define, #Include, and #If. See also ##.

In class syntax, parameter prefix used to return the parameter value. For example, ##class(%Library.Boolean).#XSDTYPE or myinstance.#EXTENTQUERYSPEC.

In ZBREAK debugging, an iteration counter for disabling a specified breakpoint or watchpoint. For example, the following disables the breakpoint at label^rou for 100 iterations: ZBREAK -label^rou#100.

Delimiter for a runtime expression: #(expr)#, where expr is a Caché ObjectScript expression.

In the callout routine ZFENTRY, an argtype prefix indicating a DOUBLE data type: #D or #F.

Regular expression end-of line comment indicator (in (?x) mode only).

##

Double pound sign: Object class invocation prefix: ##class(classname).methodname() or ##class(classname).#parametername.

##super() syntax is used to invoke an overridden superclass method.

Prefix for certain macro preprocessor directives, including ##Continue, ##Expression, ##Function, ##Lit, ##SQL, and ##Unique. ##SQL is invoked to execute a line of SQL code from within ObjectScript: ##SQL(SQL command).

Delimiter for a compile-time expression: ##(expr)##, where expr is a Caché ObjectScript expression.

##; Double pound sign semicolon: Single-line comment indicator; can be used in column 1 in either ObjectScript or Embedded SQL.
#; Pound sign semicolon: Single-line comment indicator; can be used in column 1.
$

Dollar sign (36): Intrinsic (system) function prefix: $name(parameters).

Special variable prefix: $name.

$Znnn (a name beginning with $Z) can be a user-defined function or special variable defined using %ZLANG language extension library. It can also be an intrinsic (InterSystems supplied) function or special variable.

Regular expression end of string anchor; for example, (USA)$.

In ZBREAK debugging, a single-step breakpoint.

As first character at terminal prompt, load interactive subshell.

$$

Double dollar sign: Extrinsic (user-written) function prefix: $$name(parameters). $$ is returned by $STACK when context was established by an extrinsic function reference.

Prefix to a routine name to directly invoke that routine.

$$$ Triple dollar sign: Macro invocation prefix.
%

Percent sign (37): Permitted as first character of names: (1) local variable names, indicating a “% variable” with special scoping rules, used for locking. (2) routine names, often indicates a system utility. (3) Package class names, such as %SYSTEM.class and %Library.class. (4) %Persistent object property names and method names, such as %Dialect, %New(), and %OpenId(). (5) 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值