Closed malankriel closed 2 years ago
Nothing to do with Private / Public, I'm working on MWE now
Okay, so this doesn't render:
Function dictget(d As Dictionary, key As Variant, Optional default As Variant = Empty)
End Function
But this does:
Function dictget(d As Dictionary, key As Variant)
End Function
So the optional argument seems to be the problem here
' Variant tests:
Function Test1(d As Dictionary, key As Variant, Optional default As Variant = Empty)
' This doesn't render
End Function
Function Test2(d As Dictionary, key As Variant, Optional default As Variant)
' This renders
End Function
Function Test3(d As Dictionary, key As Variant, Optional default)
' This renders
End Function
' Integer tests:
Function Test4(d As Dictionary, key As Variant, Optional default As Integer = 0)
' This doesn't render
End Function
Function Test5(d As Dictionary, key As Variant, Optional default As Integer)
' This renders
End Function
Function Test6(d As Dictionary, key As Variant, Optional default)
' This renders
End Function
It looks like any optional argument with a default value doesn't render
Another one that doesn't render:
Public Function dict(ParamArray Args() As Variant) As Dictionary
End Function
Sorry, I just made a single commit that closes the issue, rather than a PR, since this module is still so experimental
Given these two functions in the .bas file:
Only the Private function is in the documentation: