Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Ansi -iso > Passing zero-le...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 133 of 211
Post > Topic >>

Passing zero-length strings (Extended Pascal)

by Frank Heckenbach <frank@[EMAIL PROTECTED] > Feb 5, 2005 at 03:13 PM

: If the parameter苯orm of the value計arameter貞pecification
: contains a schema要ame that denotes the schema denoted by the
: required schema虹dentifier string, then each corresponding
: actual計arameter contained by the activation計oint of an
: activation shall possess a type having an underlying負ype that is
: a string負ype or the char負ype; it shall be an error if the values
: of these underlying負ypes, associated with the values denoted by
: the actual計arameters, do not all have the same length. Within the
: activation, each corresponding formal計arameter shall possess the
: type produced from the schema string with the tuple having that
: length as its component.

What if the length is zero? Zero is not a valid value for the
component of the tuple (i.e., the capacity) of the `String' schema
(6.4.3.3.3). Does this mean that passing a zero-length string as a
value-parameter is not allowed, or was this case overlooked in the
standard (and if so, would setting the capacity to 1 in this case
seem reasonable, with the length of the parameter, of course, still
being zero)?

Frank

-- 
Frank Heckenbach, frank@[EMAIL PROTECTED]
 http://fjf.gnu.de/
GnuPG and PGP keys:         http://fjf.gnu.de/plan
(7977168E)
Pascal code, BP CRT bugfix: http://fjf.gnu.de/programs.html
Free GNU Pascal Compiler:   http://www.gnu-pascal.de/




 2 Posts in Topic:
Passing zero-length strings (Extended Pascal)
Frank Heckenbach <fran  2005-02-05 15:13:11 
Re: Passing zero-length strings (Extended Pascal)
John Reagan <john.reag  2005-02-07 15:16:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 5:50:14 CDT 2008.