Results 1 to 40 of 2081

Thread: TwinBasic

Threaded View

  1. #11
    Hyperactive Member
    Join Date
    Dec 2020
    Posts
    322

    Re: TwinBasic

    Quote Originally Posted by Niya View Post
    My apologies, I should have chosen my works more carefully. That is what I meant, the program crashes with an exception.

    With regards to this issue. I was under the impression that this would qualified as syntax error and not a runtime error which I why I found that exception odd. If not using Set was a violation, I was expecting the compiler to prohibit compilation of the code.



    This is good to hear.



    I'll see if I can find my GitHub credentials some time soon. I have them in a file somewhere. Been a while since I logged into GitHub.
    Ah OK, the runtime error is what is expected here; same as VB6. Without the 'Set', it gets default-member property-put semantics (through IDispatch with DISPID_VALUE). With IDispatch being late-bound, this is a runtime-error instead of a compile-error.

    However, twinBASIC could be smarter than VB6 here, as it knows for sure that there's no default members defined on these internally defined classes, and so could throw a compile-error.
    Last edited by WaynePhillipsEA; Aug 14th, 2021 at 02:49 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