Re: EQUIVALENCE(variable inside module, variable outside module) ????



kis <kisitanggang@xxxxxxxxx> wrote:

> I am trying to use EQUIVALENCE for variable which appears in a module.
> It doesn't work!!!

Hint. To get better help show exactly what you are doing and what error
message results. Don't just try to describe it.

> Is there any other Fortran command that can do the job of EQUIVALENCE
> for variables in a module?

Equivalence works perfectly fine for module variables... provided that
you use it correctly. But since you didn't show what you did, it is hard
to tell whether you used it correctly.

As a guess, perhaps you tried the equivalence in a scope where the
module was used. That won't work. You *CAN* however put an equivalence
in the module itself.

As for other ways to do the same thing.... well equivalence is used for
quite a lot of different purposes. Depends which purpose you intended.
I'm certainly not going to take all the time to explain in detail all
the possible options without having a little more data about what you
are trying to do, because I'd presumably be wasting most of the time I
spent. But a quick list of candidates includes

1. The rename option in the USE statement.

2. Pointers.

3. The transfer intrinsic.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: 3.5 Spring Attack question
    ... player if he could understand the rules. ... im not the one making up the claim that the equivalence of the listed ... attacks for the purposes of AoOs makes them equivalent for the ... purposes of usage for feats, ...
    (rec.games.frp.dnd)
  • Re: 3.5 Spring Attack question
    ... player if he could understand the rules. ... im not the one making up the claim that the equivalence of the listed ... purposes of usage for feats, thats all you guys. ...
    (rec.games.frp.dnd)
  • Re: Zero terminated strings
    ... Or did that famous Standard mung that equivalence too? ... Hint 2: lvalue. ... believe it would stack a pointer to the array. ...
    (comp.lang.c)
  • Re: commutative ring
    ... Question 1) Do you know/remember how to show something is a equivalence ... (hint: 3 things to check) ... Prev by Date: ...
    (sci.math)