Talk About Network

Google


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 > Re: Parameters ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 146 of 215
Post > Topic >>

Re: Parameters and discriminants (Extended Pascal)

by John Reagan <john.reagan@[EMAIL PROTECTED] > Mar 15, 2005 at 04:15 PM

Frank Heckenbach wrote:
> : If the parameter苯orm of the variable計arameter貞pecification contains
a
> : schema要ame, all of the corresponding actual計arameters contained by
the
> : activation計oint of an activation shall possess the same
underlying負ype
> : that is produced from the schema denoted by the schema要ame with a
tuple.
> 
> What does this mean? "The same type ... produced from a schema"
> would seem to mean the same discriminants, but this can in general
> only be checked at runtime, so shouldn't it have been a
> dynamic-violation (or error) then, rather than "shall" (in
> accordance with 3.2, note 1)?
> 

> 
> So, are we missing something, or should we assume that a
> dynamic-violation was meant in the paragraph above (and thus, the
> program above should raise a runtime error)?

You are correct.  The standard should say dynamic-violation, not 
"shall".  My compiler certainly waits until run-time to check the tuples.


-- 
John Reagan
HP Pascal/{A|I}MACRO for OpenVMS Project Leader
Hewlett-Packard Company
 




 2 Posts in Topic:
Parameters and discriminants (Extended Pascal)
Frank Heckenbach <fran  2005-03-15 13:19:47 
Re: Parameters and discriminants (Extended Pascal)
John Reagan <john.reag  2005-03-15 16:15:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Jul 25 18:22:17 CDT 2008.