From: erickson@cs.nps.navy.mil (David Erickson)
Subject: Re: limited private types, "=" operator
Date: 10 Aug 90 16:20:58 GMT [thread overview]
Message-ID: <1199@cs.nps.navy.mil> (raw)
In-Reply-To: CLAY.90Aug9121901@clio.titan.tsd.arlut.utexas.edu
In article <CLAY.90Aug9121901@clio.titan.tsd.arlut.utexas.edu> clay@titan.tsd.arlut.utexas.edu (Clay Johnson) writes:
>In article <1152@cs.nps.navy.mil> erickson@cs.nps.navy.mil (David Erickson) writes:
>
>> Is there any way to define "=" for a limited private type which is an
>> access type (which may be null)?
>I have not done so, but you should be able to `dereference' the "="
>that appears within your overloaded "=" function by using the dotted
>notation, ...
> if STANDARD."="(POINTER,null) then ...
>Let me know if this works,
>Clay
This will not work. As I noted in a previous posting, the basic operators
for a type (including "=") are implicitly defined immediately after the
type declaration, rather than in STANDARD.
-Dave Erickson
next prev parent reply other threads:[~1990-08-10 16:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1990-08-01 18:47 limited private types, "=" operator David Erickson
1990-08-02 3:34 ` mackey
1990-08-02 17:46 ` David Kassover
1990-08-03 16:01 ` David Erickson
1990-08-04 0:01 ` Charles H. Sampson
1990-08-09 17:19 ` Clay Johnson
1990-08-10 16:20 ` David Erickson [this message]
-- strict thread matches above, loose matches on Subject: below --
1990-08-02 13:44 "Norman H. Cohen"
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox