Re: overloaded cant be distinguished by return values?



Richard Edgar wrote:


Being more general (please correct me if I'm wrong...), this is an
example of the rule in Fortran that the RHS of any expression is
evaluated before the LHS is considered.

If I've understood it correctly, it is simply a case of a function
result not being a dummy argument, although in some respects it may
behave similar to one with intent(out). In particular, the function
result object is short lived in that it ceases being defined once the
assignment to the LHS at call is performed.

Regards
.



Relevant Pages

  • Re: Generic methods..
    ... T Product(T lhs, T rhs); ... T Negate(T arg); ... private static readonly IMathprovider; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: why is it so ?
    ... >>> (lhs, rhs) ... > Could you please tell me by which rule you have interleaved evaluation ... method of breaking up expressions using partial ordering by creating an ...
    (comp.lang.c)
  • Re: Suggestion for C# language: Modification to the "new" keyword - Allow type inference in C# t
    ... I can't think of a situation where info flows from the RHS into LHS before the operation on the LHS can complete. ... However, using your analogy, it could be said that there are situations where the LHS participates in the equation independently from the RHS. ... The introduction of "var" was radically different, in that the barrier which kept each side from influencing the other was broken down. ... Can you think of any other statement or expression where info flows from the RHS into LHS before the operation on the LHS can complete? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Floating point equality comparison if(a==0)
    ... > experimentally, rather than using Fortran intrinsics such as TINY, ... Obviously I dont expect that any computation involving "a" on the LHS will ... I could use the additional logical flag, ... cumbersome and I would prefer to avoid it if possible. ...
    (comp.lang.fortran)
  • Re: Suggestion for C# language: Modification to the "new" keyword - Allow type inference in C# t
    ... The RHS is no longer independant of the LHS and that is just ... Why oh why must you write MyClass TWICE: ... IF this is an assignment statement ...
    (microsoft.public.dotnet.languages.csharp)