User Tools

Site Tools


delegates

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
delegates [2018/07/11 11:35]
wolfgangriedmann [Why Delegates]
delegates [2018/07/11 11:36] (current)
wolfgangriedmann [Why Delegates]
Line 9: Line 9:
 The only real use of function pointers in the VO language is the interface to Windows API functions or other DLL calls. ​ The only real use of function pointers in the VO language is the interface to Windows API functions or other DLL calls. ​
  
-Since every pointer use can lead to serious problems when wrongly used, the .NET languages define another concept: the delegates. And therefore you should also use delegates when you need to dynamically call functions.+Since every pointer use can lead to serious problems when wrongly used, the .NET languages define another concept: the delegates. And therefore you should also use delegates when you need to dynamically call functions. Please see below in the PCall note for a link to a sample.
  
 ==== What is a Delegate ==== ==== What is a Delegate ====
delegates.txt ยท Last modified: 2018/07/11 11:36 by wolfgangriedmann