DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    DevTeam Guest

    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




  2. #2
    Klaus H. Probst Guest

    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
    >
    >
    >




  3. #3
    Mark Burns Guest

    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
    > >
    > >
    > >

    >
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links