sqlite api fix
[sxnasal.git] / NOTES
blobbde188822031819aad307e7f0b035ca30315bf6a
1 notes about named functions
2 ===========================
4 Top-level `func boo {}` will be rewritten to `const boo = func boo {}`.
5 But note that this is done *only* for the top-level definitions. Also,
6 function name is a special local that will not be included into any closure.
7 So if you want to use it in nested functions, you have to assign it to the
8 local first:
10   func boo () {
11     var fn = boo;
12     return func { fn; }
13   }
15 Please, note that the code like this:
17   func boo () {
18     return func { boo; }
19   }
21 *may* work sometimes, but it will return the `boo` from the closure, not a
22 function `boo`. This may work for top-level functions due to the rewrite i
23 mentioned above, but don't rely on it.