c_op_misc.htm

来自「Delphi脚本控件」· HTM 代码 · 共 181 行

HTM
181
字号
<html>
<head>
<link rel=stylesheet type="text/css" href="styles.css">
</head>
<body>

<h3>
paxC Miscellaneous Operators
</h3>

<table border="1">
<tr>
<th>Language Element</th>
<th>Short Description</th>
</tr>

<tr>
<td><a href="#& Operator"><b>& Operator</b></a></td>
<td>Returns delegate of function or alias of variable.</td>
</tr>

<tr>
<td><a href="#* Operator (unary)"><b>* Operator (unary)</b></a></td>
<td>Returns alias of variable.</td>
</tr>

<tr>
<td><a href="#Comma Operator (,)"><b>Comma Operator (,)</b></a></td>
<td>Causes two expressions to be executed sequentially.</td>
</tr>
<tr>
<td><a href="#New Operator"><b>New Operator</b></a></td>
<td>Creates a new object.</td>
</tr>

<tr>
<td><a href="#+ Operator (unary)"><b>+ Operator (unary)</b></a></td>
<td>Returns copy of array.</td>
</tr>


</table>


<a name="& Operator"><h3>& Operator</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Returns delegate of function or alias of variable.
<pre>
result = & expr
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable.
</blockquote>
</blockquote>
<blockquote>
<i>expr</i>
<blockquote>
Function or variable.
</blockquote>
</blockquote>
</blockquote>

<a name="* Operator (unary)"><h3>* Operator (unary)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Returns alias of variable.
<pre>
result = * expr
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable.
</blockquote>
</blockquote>
<blockquote>
<i>expr</i>
<blockquote>
Any expression.
</blockquote>
</blockquote>
</blockquote>


<a name="Comma Operator (,)"><h3>Comma Operator (,)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Causes two expressions to be executed sequentially.
<pre>
expression1, expression2
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>expression1, expression2</i>
<blockquote>
Any expression.
</blockquote>
</blockquote>
The , operator causes the expressions on either side of it to be executed in left-to-right order, and obtains the value of the expression on the right.
</blockquote>
<a name="New Operator"><h3>New Operator</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Creates a new object.
<pre>
result = <font color="blue"><b>new</b></font> constructor'(' [arguments] ')'
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>result</i>
<blockquote>
Any variable
</blockquote>
</blockquote>
<blockquote>
<i>constructor</i>
<blockquote>
A class name
</blockquote>
</blockquote>
<blockquote>
<i>arguments</i>
<blockquote>
Optional. Any <font color="black"><i>arguments</i></font> to be passed to the new object's constructor.
</blockquote>
</blockquote>
<H4>
Example
</H4>
<pre>
X = <font color="blue"><b>new</b></font> Point(3, 5);
</pre>
</blockquote>






<a name="+ Operator (unary)"><h3>+ Operator (unary)</h3></a>
<!-------------------------------------------------------------------->
<blockquote>
Returns copy of array.
<pre>
result = + expr
</pre>
<H4>
Arguments
</H4>
<blockquote>
<i>expr</i>
<blockquote>
Any expression
</blockquote>
</blockquote>
</blockquote>
<p>
<HR>
<font size = 1 color ="gray">
Copyright &copy; 1999-2005
VIRT Laboratory. All rights reserved.
</font>
</body>
</html>


</body>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?