I also think the STL should not be considered part of the language so
let me answer them.
Standard Template Library (speaks for itself)
Then define what you mean by Standard Template Library.
Different people *do* have different definitions for what it is,
though they often overlap.
A linked list. Either pre written or written specifically for the
project.
"STL" provides a pre-written linked list.
So STL would appear to be one approach to satify your response.
Well it depends what you want to sort and how you want to sort it.
If there are no appropriate sorting algorithms in whatever library you
happen to be using then you write one, that's why your a programmer.
"STL" is a library which can provide an appropriate sorting algorithm
in many cases. So again, STL would appear to be one approach to satify
your response.
You have two linked lists, if possible to use templits feel free to do
so.
"STL" does provide a linked list template.
So again, STL would appear to be one approach to satify such a possibility.
Do the same as you did the last time,
Which may be that you used "STL".
additionally, if code is
portable to the new project then use it.
Which may mean you're using "STL".
Let me clear up some facts:
You cannot effectively program a computer without first understanding
the computer system you are going to program, this newsgroup tries
very hard to keep away from implementation specifics, but it's always
gonna crop up.
Completely ignoring platform specifics surely has problems.
But so does only considering the platform. As always, a balance
must be struck. Using the STL is one way to do so. As with
any compromise, there will be pros and cons, misuses, and places
where it doesn't work.
The OP was discussing portability issues with dll's. A dll is a piece
of software so this is a software portability issue, not source code
portability.
The problem with STL is that it uses compile time computing and as all
templates are deduced at compile time they are not always goin to be
suitable.
Some people are falsely misled into thinking they can write source
code which is portable to any computer system, they call this portable
code. This is a completely ludicrous idea. Software is not portable,
the word portable does not really belong in computer software
development. However in the area of dll's and other areas the word
portable does fit a little.
So there is a division between those who think portability means
a) Portable Software
b) Portable source code.
As I already explained I think the idea of portable source code is
astoundingly stupid. And I choose option a).
I prefer to be open minded, and hence prefer to think that
portabilty can apply to many areas. And I agree that 100%
portability can sometimes be hard to achieve, even with option a,
whatever it means. As with the compromises mentioned above,
instead of dealing with perfection, I prefer to think we're
dealing with something relative, since it too will have its
pros and cons, etc. Same things can be said of efficiency
and many other things. So to me, whatever it is that we're
talking about that can be portable, we wanna strive for it
the right dynamics of adapability, extensibililty, design,
API, etc etc. realizing there will be cases where it might break,
need an alternative, whatever.
So who conceived this stupid idea of portable source code?
Let me explain:
It's a big marketting gimmick. It's a "buzz word".
Punters think portable code is great because they don't have to
understand how the processors and underlying systems work. So how many
billions have been made from the standardisation of C++? Who profits?
a) standardisation comittee
b) market leaders in development software.
c) governments
d) other small subsiduary sofware developers
So everyone gains,cool.
If that's right, then that's great.
Now going back to before STL was part of the standard what would be
the benefits of including STL in the language?
a) more work therefore more money for all of the above.
what are the pitfalls?
a) none of the above give a **** they've got more money
If I understand you, this is circularly illogical,
because if it's so, then whether STL exists or not,
there have always been people touting portability,
and if it's this big conspiracy you're point out,
then it's always been, is now, and will always be,
so whoever is winning continue to win and whoever is
loosing continues to loose.
And that's how it seems to be going. Do you think they care about
technical correctness? lol perhaps some do but they probably care more
about their bank accounts.
If this is true, then it's still true whether STL exists or not.