From vannex@eudoramail.com Tue May 1 12:15:49 2001 Date: Tue, 01 May 2001 04:15:49 -0700 From: vannex b. consad vannex@eudoramail.com Subject: problem of basic semantics and bindings
i have a problem, pls. can u provide me with the answers of these things.. thank you very much... 

a. Assume the language Pascal, C, or Modula-2.  Give as precise bindings times as you can for the following attributes, and give reasons for your answers:

    1.  the number of significant digits of a real number.
    2.  the meaning of char.
    3.  the size of array variable.
    4.  the size of an array parameter.
    5.  the location of a local variable.
    6.  the value of a constant.
    7.  the location of a function.

b.  Discuss the meaning of the following statement, early binding promotes security and efficiency, while late binding promotes flexibility and expressivenes..

c.  Compare the advantages and disadvantages of Pascal's declaration before use rule with Modula-2's rule that extends the scope of a declaration to the entire block, regardless of its position in the block.

d.  Describe the bindings performed by a Pascal Forward declaration.  why is such a declaration necessary?

e.  Describe the bindings performed by a C extern declaration.  Why is such a declaration necessary?


vannex:)

 



Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com


From lewie@glass.cse.ogi.edu Fri May 18 00:16:14 2001 From: lewie@glass.cse.ogi.edu (Jeff Lewis) Date: Thu, 17 May 2001 16:16:14 -0700 Subject: cvs commit: hugs98/src preds.c prelude.h Message-ID: <200105172316.QAA01918@glass.cse.ogi.edu> lewie 2001/05/17 16:16:14 PDT Modified files: src preds.c prelude.h Log: This is really mostly a test commit. This helps hugs along w/ some of the more `interesting' fundep examples, but a final solution it is not. When checking entailment of a derived instance decl, you check entailment of each predicate in the context. Each of these checks may give rise to more opportunities for `improvement'. This patch adds an improvement step in between entailment checks. Revision Changes Path 1.28 +3 -2 hugs98/src/preds.c 1.17 +4 -4 hugs98/src/prelude.h From lewie@glass.cse.ogi.edu Fri May 18 00:29:54 2001 From: lewie@glass.cse.ogi.edu (Jeff Lewis) Date: Thu, 17 May 2001 16:29:54 -0700 Subject: cvs commit: hugs98/src prelude.h Message-ID: <200105172329.QAA01965@glass.cse.ogi.edu> lewie 2001/05/17 16:29:53 PDT Modified files: src prelude.h Log: Accidently committed my standard tweaks to prelude.h Revision Changes Path 1.18 +4 -4 hugs98/src/prelude.h From andy@glass.cse.ogi.edu Wed May 30 04:15:37 2001 From: andy@glass.cse.ogi.edu (Andy Gill) Date: Tue, 29 May 2001 20:15:37 -0700 Subject: cvs commit: hugs98/src builtin.c compiler.c output.c Message-ID: <200105300315.UAA28918@glass.cse.ogi.edu> andy 2001/05/29 20:15:37 PDT Modified files: src builtin.c compiler.c output.c Log: Adding some more snowball output fixes. This fixes the bug reported by levent (too many parens) Revision Changes Path 1.13 +7 -7 hugs98/src/builtin.c 1.7 +24 -15 hugs98/src/compiler.c 1.19 +35 -19 hugs98/src/output.c From vannex@eudoramail.com Tue May 1 12:15:49 2001 From: vannex@eudoramail.com (vannex b. consad) Date: Tue, 01 May 2001 04:15:49 -0700 Subject: problem of basic semantics and bindings Message-ID: i have a problem, pls. can u provide me with the answers of these things.. thank you very much... a. Assume the language Pascal, C, or Modula-2. Give as precise bindings times as you can for the following attributes, and give reasons for your answers: 1. the number of significant digits of a real number. 2. the meaning of char. 3. the size of array variable. 4. the size of an array parameter. 5. the location of a local variable. 6. the value of a constant. 7. the location of a function. b. Discuss the meaning of the following statement, early binding promotes security and efficiency, while late binding promotes flexibility and expressivenes.. c. Compare the advantages and disadvantages of Pascal's declaration before use rule with Modula-2's rule that extends the scope of a declaration to the entire block, regardless of its position in the block. d. Describe the bindings performed by a Pascal Forward declaration. why is such a declaration necessary? e. Describe the bindings performed by a C extern declaration. Why is such a declaration necessary? vannex:) Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com From lewie@glass.cse.ogi.edu Fri May 18 00:16:14 2001 From: lewie@glass.cse.ogi.edu (Jeff Lewis) Date: Thu, 17 May 2001 16:16:14 -0700 Subject: cvs commit: hugs98/src preds.c prelude.h Message-ID: <200105172316.QAA01918@glass.cse.ogi.edu> lewie 2001/05/17 16:16:14 PDT Modified files: src preds.c prelude.h Log: This is really mostly a test commit. This helps hugs along w/ some of the more `interesting' fundep examples, but a final solution it is not. When checking entailment of a derived instance decl, you check entailment of each predicate in the context. Each of these checks may give rise to more opportunities for `improvement'. This patch adds an improvement step in between entailment checks. Revision Changes Path 1.28 +3 -2 hugs98/src/preds.c 1.17 +4 -4 hugs98/src/prelude.h From lewie@glass.cse.ogi.edu Fri May 18 00:29:54 2001 From: lewie@glass.cse.ogi.edu (Jeff Lewis) Date: Thu, 17 May 2001 16:29:54 -0700 Subject: cvs commit: hugs98/src prelude.h Message-ID: <200105172329.QAA01965@glass.cse.ogi.edu> lewie 2001/05/17 16:29:53 PDT Modified files: src prelude.h Log: Accidently committed my standard tweaks to prelude.h Revision Changes Path 1.18 +4 -4 hugs98/src/prelude.h From andy@glass.cse.ogi.edu Wed May 30 04:15:37 2001 From: andy@glass.cse.ogi.edu (Andy Gill) Date: Tue, 29 May 2001 20:15:37 -0700 Subject: cvs commit: hugs98/src builtin.c compiler.c output.c Message-ID: <200105300315.UAA28918@glass.cse.ogi.edu> andy 2001/05/29 20:15:37 PDT Modified files: src builtin.c compiler.c output.c Log: Adding some more snowball output fixes. This fixes the bug reported by levent (too many parens) Revision Changes Path 1.13 +7 -7 hugs98/src/builtin.c 1.7 +24 -15 hugs98/src/compiler.c 1.19 +35 -19 hugs98/src/output.c