Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!lll-winken!cs!erickson From: erickson@cs.nps.navy.mil (David Erickson) Newsgroups: comp.lang.ada Subject: Re: limited private types, "=" operator Message-ID: <1199@cs.nps.navy.mil> Date: 10 Aug 90 16:20:58 GMT References: <1152@cs.nps.navy.mil> Reply-To: erickson@cs.nps.navy.mil (David Erickson) Organization: Naval Postgraduate School, Monterey CA Lines: 21 In article 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