This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g77 future / proposed extension


Jamie Lokier wrote:

> Grant Petty wrote:

> > Clearly, other languages could benefit from this as well, and some (such
> > as C++) might even be able to accommodate my ideas without actually
> > extending the language itself.

> Yes, it has been done in C++.  I implemented that sort of thing twice in
> C++.  It's very nice to use.

> As a bonus, you can mess around with the representations for different
> units, using the fastest and most compact integer representation when
> you know your program doesn't need to deal with distances more
> accurately than 1mm for example.

In fact, I wouldn't be surprised if that wasn't already possible today
with Fortran 90/95.  Unfortunately, I never thought about this problem
so it might be useful to ask this question on comp.lang.fortran ...

Extending g77 for this purpose certainly seems the wrong approach to me,
though.

Cheers,

-- 
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://gcc.gnu.org/onlinedocs/g77_news.html

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]