Loading ...
Sorry, an error occurred while loading the content.
 

Re: new or shared strings

Expand Messages
  • Greg C
    Alexander Kogtenkov wrote ... [...] ... [...] This may not be the best forum for discussing an open-ended problem like immutable Eiffel
    Message 1 of 4 , Feb 22, 2002
      "Alexander Kogtenkov" <kwaxer@...> wrote
      >
      > Emmanuel STAPF wrote:
      >
      > > What were are really looking for is some kind of immutable string so
      > > that we could use the `=' in the post-condition and be sure no one is
      > > going to change the returned value.
      > >
      [...]
      >
      > C++ solves this problem by adding a keyword "const". This way one
      > cannot call a feature on the const object if this feature can modify the
      > object (the non-modifying features are also marked with const).
      >
      [...]

      This may not be the best forum for discussing an open-ended problem like
      immutable Eiffel objects. Would anyone like to pick this up with me over
      in comp.lang.eiffel?

      Greg






      =====
      http://www.geocities.com/gmc444/gregs.html
      Apologies for the stupid Yahoo ad below.

      __________________________________________________
      Do You Yahoo!?
      Yahoo! Sports - Coverage of the 2002 Olympic Games
      http://sports.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.