From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Adding a "Project Types" layer to a project
Date: 1996/05/01
Date: 1996-05-01T00:00:00+00:00 [thread overview]
Message-ID: <Dqq6yu.GzC@world.std.com> (raw)
In-Reply-To: 3186E51C.250@post.drexel.edu
In article <3186E51C.250@post.drexel.edu>,
Chris Papademetrious <st92j0gw@post.drexel.edu> wrote:
> If I use the type from the package "vectors" directly, it works. If I
>create a subtype in types, and then use that, it fails. What am I
>missing? Thanks in advance...
There is no "+" declared in package Types. Hence the error message.
The "+" you want to call is declared in Vectors, and it has to be
directly visible in order to call it.
You could rename the "+" operator into Types.
Or, you could say "use type Vector;" in Test.
Or, you could use a derived type instead of a subtype. This will create
a new type, with an inherited "+", which may or may not be what you
want.
- Bob
P.S. I don't particularly like the idea of having a Types package, which
is just a big jumble of totally unrelated stuff.
next prev parent reply other threads:[~1996-05-01 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-01 0:00 Adding a "Project Types" layer to a project Chris Papademetrious
1996-05-01 0:00 ` John English
1996-05-01 0:00 ` Robert A Duff [this message]
1996-05-02 0:00 ` Chad Bremmon
1996-05-06 0:00 ` Chris Papademetrious
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox