Delegates in Loom

#4 Delegates in Loom

June 24, 2013 | (8 minutes)
In this Episode, we explain Delegates in the Loom Engine. Delegates are type-safe callbacks that are simpler than Events, and more powerful than Functions.

Further reading on delegates:

Wikipedia Delegation Article
MSDN C# Delegates Docs

C# treats "delegates" directly as function references; ours combine features of C# events and delegates.

The native implementation for NativeDelegates lives in loom/script/native/lsNativeDelegate.h and loom/script/native/lsNativeDelegate.cpp.

Delegates are implemented partially in the script compiler, and partially in loom/script/native/core/lmBaseDelegate.cpp and .h.

The slides are available online.