Its a lot easier to port from Java (Xerces-J) if you use a "Java-like"
approach. That means smart pointers, no templates etc.
Jim
> -----Original Message-----
> From: J. J. Merelo [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 16, 2001 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Barrage of questions from newbie
>
>
> Ram Sadasiv wrote:
> >
> > In addition to being "un-STL-like" and "un-PERL-like", when
> you get into
> > the XMLPlatformUtils and the framework's insistence to
> returning memory
> > managed objects rather than pointers, it gets kind of "un-C++-like".
> >
>
> Right-on... I was surprised to see getChild return copies, instead of
> references. I would prefer references to pointers, BTW, they always
> point to an object that already exist.
>
> > But, as you point out, options are few... Also, given the number of
> > target operating systems/compilers
> > (http://xml.apache.org/xerces-c/build-other.html) the
> statement on the
> > home page:
> >
> > "For portability, care has been taken to make minimal use
> of templates,
> > no RTTI, no C++ namespaces and minimal use of #ifdefs"
> >
>
> Those features are standard in all compilers since a couple of years
> ago, at least; and templates, at least 4 years before that. Besides,
> nowadays, you can write pretty portable, #ifdef-free, code in
> C++; major
> compilers, like GNU c++ and VC++, compile the same code without a
> problem. Of course, I can't say the same about OS400 or other obscure
> OSs, but I guess g++ is also ported to them.
>
> Is anything like that on the wish list? Lots of code (and
> headaches for
> developers) could be saved...
>
> J
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]