From: Shalom Bresticker (Shalom.Bresticker@motorola.com)
Date: Thu Oct 11 2001 - 08:30:01 PDT
Precedence: bulk
The following reply was made to PR errata/41; it has been noted by GNATS.
From: Shalom Bresticker <Shalom.Bresticker@motorola.com>
To: btf-bugs@boyd.com
Cc:
Subject: Re: errata/41: 17.2.3: Is $sformat a task or a function ?
Date: Thu, 11 Oct 2001 17:29:31 +0200
--------------8750D7EE864E75014518C5D1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I found in the archives that I asked a similar question in April 2000.
I got the answer that the following SHOULD have been in the last paragraph of the section:
"Optionally, the system task can be redefined (or additionally defined)
as a function that returns the number of characters in the resulting
string before any truncation that would occur if the reg to hold the
result is not large enough."
So the example syntax:
length = $sformat(output_reg, format_string, list_of_arguments);
Shows usage as a system function that returns the number of characters
that should be assigned to 'output_reg'.
Shalom
Shalom Bresticker wrote:
> >Originator: Charles Dawson <chas@cadence.com>
>
> In section 17.2.3 (page 295), there is a system task/function specified
> called "$sformat". As you know, you cannot use the same name to specify
> both a system task and a system function. Further, the rest of the text
> talks as if $sformat is a system task.
>
> I would suggest removing the second syntax line (listed below):
>
> $sformat(output_reg, format_string, list_of_arguments);
> length = $sformat(output_reg, format_string, list_of_arguments);
--
**************************************************************************
Shalom Bresticker Shalom.Bresticker@motorola.com
Motorola Semiconductor Israel, Ltd. Tel #: +972 9 9522268
P.O.B. 2208, Herzlia 46120, ISRAEL Fax #: +972 9 9522890
**************************************************************************
--------------8750D7EE864E75014518C5D1
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I found in the archives that I asked a similar question in April
2000.
<br>I got the answer that the following SHOULD have been in the
last paragraph of the section:
<p>"Optionally, the system task can be redefined (or additionally defined)
<br>as a function that returns the number of characters in the resulting
<br>string before any truncation that would occur if the reg to hold the
<br>result is not large enough."
<p>So the example syntax:
<p>length = $sformat(output_reg, format_string, list_of_arguments);
<p>Shows usage as a system function that returns the number of characters
<br>that should be assigned to 'output_reg'.
<p>Shalom
<br>
<p>Shalom Bresticker wrote:
<blockquote TYPE=CITE>>Originator: Charles Dawson
<chas@cadence.com>
<p>In section 17.2.3 (page 295), there is a system task/function specified
<br>called "$sformat". As you know, you cannot use the same name
to specify
<br>both a system task and a system function. Further, the rest of
the text
<br>talks as if $sformat is a system task.
<p>I would suggest removing the second syntax line (listed below):
<p> $sformat(output_reg, format_string, list_of_arguments);
<br> length = $sformat(output_reg, format_string, list_of_arguments);</blockquote>
<pre>--
**************************************************************************
Shalom Bresticker Shalom.Bresticker@motorola.com
Motorola Semiconductor Israel, Ltd. Tel #: +972 9 9522268
P.O.B. 2208, Herzlia 46120, ISRAEL Fax #: +972 9 9522890
**************************************************************************</pre>
</html>
--------------8750D7EE864E75014518C5D1--
This archive was generated by hypermail 2.1.4
: Mon Jul 08 2002 - 12:54:46 PDT
and
sponsored by Boyd Technology, Inc.