Initialisation expression using overloaded intrinisic operator
From: Aidan (aidan_at_alghieri.rsc.anu.edu.au)
Date: 10/22/04
- Next message: beliavsky_at_aol.com: "Re: Which Fortran editor do you prefer to work with, in Linux?"
- Previous message: Aidan: "Re: Any fortran 90/95 wizards out there? Need help"
- Next in thread: Michael Metcalf: "Re: Initialisation expression using overloaded intrinisic operator"
- Reply: Michael Metcalf: "Re: Initialisation expression using overloaded intrinisic operator"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Oct 2004 14:37:41 +1000
I use the char() function to initialise some character mapping arrays
(upper to lower case etc) in a module. The char function is overloaded
by the iso_varying_string module which is "USEd" by my module.
This works fine with ifc but Salford complains that only intrinsic
functions are allowed in intialisation expressions. Is this a correct
reading of the standard?
If so I either have to initialise these mapping arrays in another module
and then USE that, or do some sort of char => overloaded_char in the USE
statement?
Is this second approach even legal seeing as I want to use the intrinsic
function char in the same module?
Cheers
Aidan
-- Remove famous (dead) Italian author plus full-stop to send me email (don't blame me about the spelling of Alighieri -- it is the sysadmin's fault!)
- Next message: beliavsky_at_aol.com: "Re: Which Fortran editor do you prefer to work with, in Linux?"
- Previous message: Aidan: "Re: Any fortran 90/95 wizards out there? Need help"
- Next in thread: Michael Metcalf: "Re: Initialisation expression using overloaded intrinisic operator"
- Reply: Michael Metcalf: "Re: Initialisation expression using overloaded intrinisic operator"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|