🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3809

Re: Dereferencing of opaquely exported pointers?

#3809
From: Thomas Habernoll
Date: Sun, 06 Sep 1987 18:58
12 lines
1202 bytes
>Assume that a module M1 exports a pointer type P opaquely, and a
>module M2 imports P from M1 and declares a variable p of type P.
>Can M2 refer to p^, new(p) and dispose(p) {allocate, or deallocate}?

How could you know anything about the implementation of an opaque type?
What lets you believe that it has to be a pointer type? (Yes, I know
there is a proposal to restrict opaque types to pointer types only.
But (1) this doesn't change the meaning of the word "opaque"
and (2) it is a proposal and current implementations don't have
this restriction).

  Thomas
Technical Details
Message-ID: <8709061851.AA10079@cayuga.cs.rochester.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!ames!sdcsvax!ucbvax!DB0TUI11.BITNET!HABERNOL
References: <topaz.rutgers.edu!dalal@RUTGERS.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!ames!sdcsvax!ucbvax!DB0TUI11.BITNET!HABERNOL
From: HABERNOL@DB0TUI11.BITNET (Thomas Habernoll)
Newsgroups: comp.lang.modula2
Subject: Re: Dereferencing of opaquely exported pointers?
Message-ID: <8709061851.AA10079@cayuga.cs.rochester.edu>
Date: Sun, 6-Sep-87 14:58:27 EDT
Article-I.D.: cayuga.8709061851.AA10079
Posted: Sun Sep  6 14:58:27 1987
Date-Received: Sun, 6-Sep-87 21:24:26 EDT
References: <topaz.rutgers.edu!dalal@RUTGERS.EDU>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 12