|
-
Apr 18th, 2023, 09:47 AM
#11
Re: TwinBasic
 Originally Posted by SearchingDataOnly
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?
 Originally Posted by SearchingDataOnly
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|