-
objective data types.
We (VB developers) don't have the abstracted data types of C++, they will be
great, look at this:
(suposed code);
Public Sub MyString(A As String, B As String)
' get the lenght of the string
A.Lenght
' the string pointer
A.Ptr
' insert at position with something.
A.Insert (Position:=3, WithString:=B)
' replace characters
A.Replace("%s", With:=B)
End Sub
and so on, and other functions for the other data types...
Just my 2 cents.
DevTeam
-
Re: objective data types.
Hmmm... nope, that wouldn't be good. Imagine the overhead. Why not:
Dim iNew As Integer
Set iNew = New Integer
But then you'd get into the whole memory allocation thing, which is not
pretty. Nah, let them stay the way they are.
--
.. . . . . . . . . . . . . . . . . . . . . .
Klaus H. Probst, MVP
http://www.vbbox.com/
http://www.mvps.org/ccrp/
Please post/reply to the newsgroup(s)
"DevTeam" <devteam@mmediasys.com.nospam> wrote in message
news:393485c6@news.devx.com...
> We (VB developers) don't have the abstracted data types of C++, they will
be
> great, look at this:
>
> (suposed code);
>
> Public Sub MyString(A As String, B As String)
>
> ' get the lenght of the string
> A.Lenght
>
> ' the string pointer
> A.Ptr
>
> ' insert at position with something.
> A.Insert (Position:=3, WithString:=B)
>
> ' replace characters
> A.Replace("%s", With:=B)
>
> End Sub
>
> and so on, and other functions for the other data types...
>
> Just my 2 cents.
>
> DevTeam
>
>
>
-
Re: objective data types.
Since they're putting type safety into the language, might that not open the
opportunity to do this both ways?
"Klaus H. Probst" <kprobst@vbbox.com> wrote in message
news:39349013$1@news.devx.com...
> Hmmm... nope, that wouldn't be good. Imagine the overhead. Why not:
>
> Dim iNew As Integer
>
> Set iNew = New Integer
>
> But then you'd get into the whole memory allocation thing, which is not
> pretty. Nah, let them stay the way they are.
>
>
> --
> . . . . . . . . . . . . . . . . . . . . . .
> Klaus H. Probst, MVP
> http://www.vbbox.com/
> http://www.mvps.org/ccrp/
>
> Please post/reply to the newsgroup(s)
>
>
>
> "DevTeam" <devteam@mmediasys.com.nospam> wrote in message
> news:393485c6@news.devx.com...
> > We (VB developers) don't have the abstracted data types of C++, they
will
> be
> > great, look at this:
> >
> > (suposed code);
> >
> > Public Sub MyString(A As String, B As String)
> >
> > ' get the lenght of the string
> > A.Lenght
> >
> > ' the string pointer
> > A.Ptr
> >
> > ' insert at position with something.
> > A.Insert (Position:=3, WithString:=B)
> >
> > ' replace characters
> > A.Replace("%s", With:=B)
> >
> > End Sub
> >
> > and so on, and other functions for the other data types...
> >
> > Just my 2 cents.
> >
> > DevTeam
> >
> >
> >
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks