Menu

#876 ThreadCall does not support subroutine with [U]Long type parameter

closed
None
compiler
2018-05-23
2018-04-11
No

Example:

Declare Sub test ( Byval As Long )
Dim As Any Ptr p = Threadcall test( 0 )

error 288: Unsupported function in 'Dim As Any Ptr p = Threadcall test ( 0 )'

Discussion

  • fxm (freebasic.net)

    All other pre-defined types seem to be well supported.

     
  • Jeff Marshall

    Jeff Marshall - 2018-05-20

    Discussion:
    https://www.freebasic.net/forum/viewtopic.php?t=26595

    Looks like parser simply does not allow [u]long. Don't think there is any issue adding, fbc maps the parameter types by size. fbc can resolve [u]integer, [u]long, [u]longint, overloads, so should select the appropriate sub if overloaded.

     
  • Jeff Marshall

    Jeff Marshall - 2018-05-21
    • assigned_to: Jeff Marshall
     
  • Jeff Marshall

    Jeff Marshall - 2018-05-21
     
  • Jeff Marshall

    Jeff Marshall - 2018-05-23
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB