roxen.lists.pike.general
Subject | Author | Date |
---|---|---|
overloading + | Marc Dirix (Electronics Design <marc[at]electronics-design[dot]nl> | 23-01-2009 |
Hi, What is a good / usable example on overloading the + operator? I need += and + both to work in a class. The added parameter can be of type int or string. Also what would the `+=() return after doing the operation? "this_object()"? Currently I get "segmentation fault" which is not really what I want. -- Met vriendelijke groet, Marc Dirix Electronics Design Bouwensstraat 24, 6369 BG Simpelveld Nederland. |