www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/03/11:37:18

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
To: DJGPP AT sun DOT soe DOT clarkson DOT edu
Date: Fri, 3 Nov 1995 09:34:13 GMT
Subject: Priority of long-chain expressions

  If I write e.g. this:-
    class cat{public: ........
      cat operator-(cat&X){cat Y; ........ ; return Y;};
      ..... };
  cat Tom, Tabbins, Fluff, Puss, Mittens;

  in the expression    (Tom - Tabbins - Fluff - Puss - Mittens)
  can I rely on (a) djgpp, (b) all other C++ inplementations, always obeying
the calls of `-' from left to right?, i.e. as:-

    ((((Tom - Tabbins) - Fluff) - Puss) - Mittens)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019