
5 Nov
2005
5 Nov
'05
9:16 p.m.
Janusz Piwowarski wrote:
Saturday, November 5, 2005, 9:49:17 PM, Stefan Seefeld wrote:
Huh ? What is 'comment("foo")' then supposed to be, if not a constructor call ?
Ok, but you don't want to use it. I disagree with placing constructing code in append_commend function.
So we agree then, fine. I suggest 'append_comment("foo")' while someone else proposed to overload the 'append' name, using something like 'append(comment("foo"))' instead, which would imply explicit node creation, as opposed to nodes being created by factories (such as document and element). Regards, Stefan