home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / protocol / iso / 1111 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.6 KB  |  47 lines

  1. Newsgroups: comp.protocols.iso
  2. Path: sparky!uunet!walter!wrench!tain
  3. From: tain@wrench.bae.bellcore.com (Tai Nguyen)
  4. Subject: Re: Re:
  5. Message-ID: <1992Sep8.212341.28488@walter.bellcore.com>
  6. Sender: news@walter.bellcore.com
  7. Nntp-Posting-Host: wrench.bae.bellcore.com
  8. Organization: Bell Communications Research
  9. References: <86010002@hpcndaw.CND.HP.COM> <86010003@hpcndaw.CND.HP.COM>
  10. Date: Tue, 8 Sep 92 21:23:41 GMT
  11. Lines: 34
  12.  
  13. In article <86010003@hpcndaw.CND.HP.COM>, mds@hpcndaw.CND.HP.COM (Mark Smith) writes:
  14. |> Thanks to Bancroft Scott who sent me the following reply. I posted it
  15. |> in case anyone else was interested.
  16. |> 
  17. |> Mark smith
  18. |> 
  19. |> 
  20. |> >I'm trying to understand section 24.6 of ISO/IEC 8824:1990 regarding
  21. |> >distinct identifiers.
  22. |> >
  23. |> >Given the following definitions:
  24. |> >
  25. |> >T1 ::= SEQUENCE {   X1,
  26. |> >          b BOOLEAN
  27. |> >        }
  28. |> >
  29. |> >X1 ::= CHOICE { y INTEGER, z REAL }
  30. |> >
  31. |> >Would the identifiers for T1 be: y, z, b ??
  32. |> 
  33. |> No.  The only identifier for T1 is b, but y and z are visible to
  34. |> T1 because X1 does not have an identifier.  In effect, this means
  35. |> that when creating a value reference, you will not be able to
  36. |> distinguish whether y and z were defined in T1 or in X1.  
  37.  
  38. I think you can distinguish whether y and z were defined in T1 or in X1 
  39. because the value syntax of CHOICE type is different than that of SEQUENCE
  40. type. For example, t1 T1 ::= { y:123, b TRUE }
  41.  
  42. ______________________________________________________________________________
  43. Tai Nguyen                Email: ...!bae.bellcore.com!tain
  44. Bell Communication Research         Phone: (908) 699-7934
  45. 444 Hoes Lane Room RRC 1B210
  46. Piscataway NJ, 08854
  47.