>> > I plan to use method attributes for operator overloading too: > " > type > complexty = object > real,imm: flo64; > method add(const a,b: complexty): complexty ['+']; > method sub(const a,b: complexty): complexty ['-']; > method mul(const a,b: complexty): complexty ['*']; > method tostring8(const source: complexty): string8 [':=']; > end; > " > > Martin
sounds good , but i think it add some complexity to the code readability, because the name (add) already indicates the operation , so why ['+'] , maybe operator instead of method should be fine ! . just thought ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk