473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

what is the meaning of STL.NET

I found that the STL.NET published with VS Beta2, but what is the meaning of
STL.NET.

Is it just a simple wrapper to replace the old std stl?
I can find nothing new but the keyword 'Generate' to replace 'Template',and
the keyword 'gcnew' to replace 'new'.

So, could you tell me what's the meaning of STL.NET.
I really think it is still very ugly.
Nov 17 '05 #1
7 1580


KevinLee a écrit :
I found that the STL.NET published with VS Beta2, but what is the meaningof
STL.NET.
Is it just a simple wrapper to replace the old std stl? Not exactly. It's a version of the STL that is compatible with .NET
CLI/C++ code : More precisely, STL.NET container can contains gc
objects : Hence you can do:
map<String^, MyObject^> MyMap; for example.

See
http://msdn.microsoft.com/library/de...-netprimer.asp
for a presentation on the subject.
I can find nothing new but the keyword 'Generate' to replace 'Template',and
the keyword 'gcnew' to replace 'new'.

So, could you tell me what's the meaning of STL.NET.
I really think it is still very ugly.

What do you mean by "still" very ugly? Why?
Arnaud
MVP - VC

Nov 17 '05 #2


KevinLee a écrit :
I found that the STL.NET published with VS Beta2, but what is the meaningof
STL.NET.
Is it just a simple wrapper to replace the old std stl? Not exactly. It's a version of the STL that is compatible with .NET
CLI/C++ code : More precisely, STL.NET container can contains gc
objects : Hence you can do:
map<String^, MyObject^> MyMap; for example.

See
http://msdn.microsoft.com/library/de...-netprimer.asp
for a presentation on the subject.
I can find nothing new but the keyword 'Generate' to replace 'Template',and
the keyword 'gcnew' to replace 'new'.

So, could you tell me what's the meaning of STL.NET.
I really think it is still very ugly.

What do you mean by "still" very ugly? Why?
Arnaud
MVP - VC

Nov 17 '05 #3

"KevinLee" <At***********@hotmail.com> skrev i meddelandet
news:uH*************@TK2MSFTNGP15.phx.gbl...
I found that the STL.NET published with VS Beta2, but what is the
meaning of STL.NET.

Is it just a simple wrapper to replace the old std stl?
It is not a simple wrapper, and it is not a replacement, it is an
addition.

Visual C++ supports to different C++ languages:

- ISO Standard C++, including the C++ standard library
- ECMA C++/CLR, with STL.NET

These are two different languages, that just looks similar (and with
similar names).

I can find nothing new but the keyword 'Generate' to replace
'Template',and the keyword 'gcnew' to replace 'new'.
C++/CLR also has a 'generic' keyword, which is totally different from
'template'. It's another language, just like Java or C#.

So, could you tell me what's the meaning of STL.NET.
I really think it is still very ugly.


To get stl support for managed C++, just like the C++ standrad library
supports it for native C++.
Bo Persson
Nov 17 '05 #4

"KevinLee" <At***********@hotmail.com> skrev i meddelandet
news:uH*************@TK2MSFTNGP15.phx.gbl...
I found that the STL.NET published with VS Beta2, but what is the
meaning of STL.NET.

Is it just a simple wrapper to replace the old std stl?
It is not a simple wrapper, and it is not a replacement, it is an
addition.

Visual C++ supports to different C++ languages:

- ISO Standard C++, including the C++ standard library
- ECMA C++/CLR, with STL.NET

These are two different languages, that just looks similar (and with
similar names).

I can find nothing new but the keyword 'Generate' to replace
'Template',and the keyword 'gcnew' to replace 'new'.
C++/CLR also has a 'generic' keyword, which is totally different from
'template'. It's another language, just like Java or C#.

So, could you tell me what's the meaning of STL.NET.
I really think it is still very ugly.


To get stl support for managed C++, just like the C++ standrad library
supports it for native C++.
Bo Persson
Nov 17 '05 #5
KevinLee wrote:
Is it just a simple wrapper to replace the old std stl?
It's a wrapper around .NET containers. The idea is that C++ programmers
are very used to the STL and its syntax. We find it easy and familiar.
STL.NET allows us to access managed containers with a close-to-STL syntax.
I really think it is still very ugly.


What's ugly, STL or .NET? If you find STL ugly, don't use STL.NET, use
..NET containers directly. If you find MC++ ugly, learn the new C++/CLI
syntax.

Tom
Nov 17 '05 #6
KevinLee wrote:
Is it just a simple wrapper to replace the old std stl?
It's a wrapper around .NET containers. The idea is that C++ programmers
are very used to the STL and its syntax. We find it easy and familiar.
STL.NET allows us to access managed containers with a close-to-STL syntax.
I really think it is still very ugly.


What's ugly, STL or .NET? If you find STL ugly, don't use STL.NET, use
..NET containers directly. If you find MC++ ugly, learn the new C++/CLI
syntax.

Tom
Nov 17 '05 #7
To add to what others have said, note that STL.NET (or STL/CLI) is not a CLI
wrapper around STL, it's a full implementation in managed code that uses
generics and templates.

--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com
"KevinLee" <At***********@hotmail.com> wrote in message
news:uH*************@TK2MSFTNGP15.phx.gbl...
I found that the STL.NET published with VS Beta2, but what is the meaning
of STL.NET.

Is it just a simple wrapper to replace the old std stl?
I can find nothing new but the keyword 'Generate' to replace
'Template',and the keyword 'gcnew' to replace 'new'.

So, could you tell me what's the meaning of STL.NET.
I really think it is still very ugly.

Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: jinal jhaveri | last post by:
Hi All, I have one question regarding circular inheritance I have 3 files 1) A.py , having module A and some other modules 2) B.py having module B and some other modules 3) C.py having...
112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
20
by: Steven T. Hatton | last post by:
I just read this in the description of how C++ is supposed to be implemented: "All external object and function references are resolved. Library components are linked to satisfy external...
17
by: candy_init | last post by:
I sometimes comes across statements which invloves the use of size_t.But I dont know exactly that what is the meaning of size_t.What I know about it is that it is used to hide the platform...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Languageâ€, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
132
by: Frederick Gotham | last post by:
If we look at a programming language such as C++: When an updated Standard comes out, everyone adopts it and abandons the previous one. It seems though that things aren't so clear-cut in the C...
22
by: nospam_news | last post by:
I currently get asked about my usage of "auto". What is it for? The keyword is clearly superflous here. In contrast to the huge majority of C/C++ developers I write definitions very explicitly...
4
by: Virtual_X | last post by:
it's only language confusion i am non-english speaker so i heard about stream in alot of c++ tutorials ie: in iostream and in sstream headers in sstream we use the class stringstream to...
5
by: =?Utf-8?B?Sm9seW5pY2U=?= | last post by:
Hi everyone, I am learning c# and i don´t understand a piece of code , can anyone explain the meaning of this code please. public class vector { public double? R = null; //I suppose this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.