mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 09:46:12 +02:00
pastojs: anonymous functions docs
git-svn-id: trunk@40530 -
This commit is contained in:
parent
93ec37a4bc
commit
ac94267311
@ -356,6 +356,8 @@ Works:
|
|||||||
- modeswitch OmitRTTI
|
- modeswitch OmitRTTI
|
||||||
- debugger;
|
- debugger;
|
||||||
- anonymous functions
|
- anonymous functions
|
||||||
|
- assign
|
||||||
|
- pass as argument
|
||||||
|
|
||||||
ToDos:
|
ToDos:
|
||||||
- do not rename property Date
|
- do not rename property Date
|
||||||
|
@ -2031,8 +2031,9 @@ rtl = {
|
|||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<h2 id="anonymousfunctions">Translating anonymous functions</h2>
|
<h2 id="anonymousfunctions">Translating anonymous functions</h2>
|
||||||
Anonymous functions are not yet supported by pas2js. The next best thing are
|
Anonymous functions are supported since pas2js 1.1.<br>
|
||||||
local procedures. For example:
|
Note that in pas2js local procedures are closures as well. See below.<br>
|
||||||
|
For pas2js 1.0 the next best thing are local procedures. For example:
|
||||||
<table class="sample">
|
<table class="sample">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user