Results 1 to 40 of 2075

Thread: TwinBasic

Threaded View

  1. #11
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,958

    Re: TwinBasic

    Quote Originally Posted by SearchingDataOnly View Post
    vbString and vbLong are used for VB6 compatibility. That is, vbString and vbLong are variables (or constants), not types.
    That would mean you could only use types that had a constant defined rather than any type, how would you deal with custom classes etc. in your approach?

    Quote Originally Posted by SearchingDataOnly View Post
    The question you pointed out is very reasonable. Maybe I should write like this:

    Code:
        Dim AL = New_List(vbString, vbLong)
    Also, the constructor I envision looks like this:

    cArrayListEx
    Code:
    Friend Sub Constructor(vType As VbVarType, vTagType As VbVarType, ParamArray P() As Variant
    
    End Sub
    IMHO that would confuse the actual parameters with the type parameters though. Just looking at your suggested Constructor again... Would you expect the constructor to use the vType and vTagType parameters or would this be done by the compiler / runtime? I suspect I am not quite understanding the approach your Constructor is taking.
    Last edited by PlausiblyDamp; Apr 18th, 2023 at 11:23 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width