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. 7 1598
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
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
"KevinLee" <At***********@ hotmail.com> skrev i meddelandet
news:uH******** *****@TK2MSFTNG P15.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
"KevinLee" <At***********@ hotmail.com> skrev i meddelandet
news:uH******** *****@TK2MSFTNG P15.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
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
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
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******** *****@TK2MSFTNG P15.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 module C and some other modules
|
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, share your experience in using IDENTITY as PK .
|
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 references to functions and
objects not defined in the current translation. All such translator output
is collected into a program image which contains...
|
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 details.I tried
to find its meaning in the header files but did'nt got a good answer.So
can somebody please tell me that what is the meaning of size_t and...
|
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 paper written on this
subject.
On the Expressive Power of Programming Languages, by Matthias
Felleisen, 1990....
| |
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 community. It
would seem that C99 is the most up-to-date Standard, but far more people
seem to be working off the C89 Standard.
Could someone...
|
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 like that:
int main(char argc, char *argv, char *env) {
try {
auto Exception mainException(1);
mainException.setErrNo(42);
|
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 convert string to
numerical and i know that
stringstream class allows a string-based object to be treated as a
|
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 is a Generic Type ???
..........
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |