Rehashing NEW keyword a SECOND time, right NOW... - Page 5


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 5 of 5 FirstFirst ... 345
Results 61 to 65 of 65

Thread: Rehashing NEW keyword a SECOND time, right NOW...

  1. #61
    Gregor R. Peisker Guest

    Re: Rehashing NEW keyword a SECOND time, right NOW...

    Hi Rohit,

    > I see that "Set" is dropped because we dont deal with "Default" properties
    > so there is no confuasion like whether to set the whole object reference
    > or just the default property, New on the other hand is serving a different
    > purpose, which I see can not be done away with!


    The Set statement didn't help telling the reference and the default property
    apart if your default property was of a reference type, i.g.:

    ' VB6 Class Test
    Public Another As Test ' default

    ' somewhere else
    Dim t As Test: Set t = New Test
    Dim x As Test
    Set x = t ' should assign t (not sure)
    Set x = t.Another ' assigns t.Another

    Regards,
    Gregor






  2. #62
    Jon Ogden Guest

    Re: Rehashing NEW keyword a SECOND time, right NOW...


    "Joe "Nuke Me Xemu" Foster" <joe@bftsi0.UUCP> wrote

    >Any findings I have to report from B1 will merely
    > be met with, "Wait for Beta 2!" while anything I might find with Beta 2
    > will merely be met with "Wait for the release!" from the NDA'd.


    Would it be fair to say that in your personal program,

    sFindings = cThingsTo*****About.rehash

    and

    sSilence = cThings IWas WrongAbout.discovered

    ?



  3. #63
    Joe \Nuke Me Xemu\ Foster Guest

    Re: Rehashing NEW keyword a SECOND time, right NOW...

    "Jon Ogden" <jon@ogdenco.net> wrote in message <news:3b2b8655@news.devx.com>...

    > "Joe "Nuke Me Xemu" Foster" <joe@bftsi0.UUCP> wrote
    >
    > >Any findings I have to report from B1 will merely
    > > be met with, "Wait for Beta 2!" while anything I might find with Beta 2
    > > will merely be met with "Wait for the release!" from the NDA'd.

    >
    > Would it be fair to say that in your personal program,
    >
    > sFindings = cThingsTo*****About.rehash
    >
    > and
    >
    > sSilence = cThings IWas WrongAbout.discovered
    >
    > ?


    What are you babbling about? Did Microsoft suddenly rediscover the XADD
    instruction and their own Win32 API wrappers for it and reintroduce DF?

    --
    Joe Foster <mailto:jfoster@ricochet.net> Got Thetans? <http://www.xenu.net/>
    WARNING: I cannot be held responsible for the above They're coming to
    because my cats have apparently learned to type. take me away, ha ha!



  4. #64
    Jonathan Allen Guest

    Re: Rehashing NEW keyword a SECOND time, right NOW...

    > StartTime = New Date().Now

    Date isn't a function or array, so I don't see why he put a paren between it
    and Now.

    --
    Jonathan Allen



  5. #65
    Larry Serflaten Guest

    Re: Rehashing NEW keyword a SECOND time, right NOW...


    "Jonathan Allen" <greywolf@cts.com> wrote
    > > StartTime = New Date().Now

    >
    > Date isn't a function or array, so I don't see why he put a paren between it
    > and Now.


    In a nutshell, it would more often appear this way

    Dim Interval As DateInterval
    Dim StartTime As Date

    Interval = DateInterval.Second
    StartTime = Date.Now


    And look how easily the New keyword was dropped from that statement!
    My question was, could it be possible to drop New from all the other places it is used too?

    A lot of people say it has to be there, and I think the language would be much 'simpler'
    if we access all the 'objects' the same way....

    LFS




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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center