This page has references to:
Data types are listed and referenced on each page. Good.
I try to follow any interesting code posted: a good way to learn other methods and how to use keywords I wouldn't normally use.
angros47 has recently posted code about using ALSA services.
Code: Select all
Dim Shared snd_strerror as Function ( _
Byval ecode As LONG) As Zstring Ptr
I have seen this kind of use of function/sub before. Any new user would have a very hard time trying to find information on how this could work.
I do use references to functions: not a problem for me.
I don't think this is a quirk.
HOWEVER, they are not listed as a datatype.
I could not use the wiki to easily find a good description of how to use 'sub' or 'function' as a type, or what the characteristics of this basic 'type' would be.
I do see the references to them as members of types/classes/UDTs. While the mechanism that allows this usage in this case is, I am sure, what allows the reference in main code, the purpose to use this in non-UDT code use would NOT be the same thing. The only 'hint' I could find that this has been true for a long time is in the THREADCREATE and THREADCALL functions - but still no clarity added there.
Did I miss something, or should there be more documentation added somewhere?
Also, I think that references to subs/functions are very powerful. Someone should write a tutorial on the possibilities this opens up for a sharp programmer. (And maybe I do not understand correctly, but couldn't this be a doorway toward polymorphism?) (It also makes genetic algorithms much simpler to write.)