Re: Namespace suggestion
- From: "Colin Watters" <qolin.see_signature@xxxxxxxxxxxxx>
- Date: Fri, 2 Dec 2005 22:19:56 -0000
I too dabbled with Modula-2.
There's little to stop you (if you really want to) from defining module
variables as members of an overall structure. EG.
Original:
module mmm
real(8) :: aa
real(8) :: bb
integer :: ii
end module mm
Modified:
module mmm_mod
type mmm_type
real(8) :: aa
real(8) :: bb
integer :: ii
end type mmm_type
type(mmm_type) mmm
end module mmm_mod
This would require use of mmm%aa instead of just aa.
....not sure how far one can go with this. just an idle idea...
--
Qolin
Email: my qname at domain
Domain: qomputing dot demon dot co dot uk
<robert.corbett@xxxxxxx> wrote in message
news:1133502306.894763.307820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Had I designed Fortran's module facility, this would have
> been the primary way to access symbols from modules.
> An equivalent of the WITH statement would have been
> provided to supply aliases.. Of course, I liked Modula-2.
>
> Bob Corbett
>
.
- Follow-Ups:
- Re: Namespace suggestion
- From: Brooks Moses
- Re: Namespace suggestion
- From: Pierre Asselin
- Re: Namespace suggestion
- References:
- Namespace suggestion
- From: Joe Krahn
- Re: Namespace suggestion
- From: robert . corbett
- Namespace suggestion
- Prev by Date: Philosophical question: Is there a limit to the complexity of a program humans can write?
- Next by Date: Re: I/O error in subroutine does not always produce error messages?
- Previous by thread: Re: Namespace suggestion
- Next by thread: Re: Namespace suggestion
- Index(es):