#247 Add concatenate methods to the Object class.

v3.2.0
closed
Rick McGuire
Classes (154)
5
2012-08-14
2007-09-28
Rick McGuire
No

Some unexpected user errors can be eliminated by adding concatenate methods to the Object class. Consider the follow Say statements:

d = .datetime~new

say d -- displays the time stamp value
say date() d -- displays the normal date + timestamp
say d date() -- Error!

If object supported the 3 concatenate operators and performed the operation using the result from the string method, all objects instances can appear in this type of statement.

Discussion

  • Rick McGuire
    Rick McGuire
    2007-09-30

    Logged In: YES
    user_id=1125291
    Originator: YES

    Committed revision 837.

     
  • Rick McGuire
    Rick McGuire
    2007-09-30

    Logged In: YES
    user_id=1125291
    Originator: YES

    Committed revision 841.

     


Anonymous


Cancel   Add attachments