mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 13:59:29 +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
|
||||
- debugger;
|
||||
- anonymous functions
|
||||
- assign
|
||||
- pass as argument
|
||||
|
||||
ToDos:
|
||||
- do not rename property Date
|
||||
|
@ -2031,8 +2031,9 @@ rtl = {
|
||||
|
||||
<div class="section">
|
||||
<h2 id="anonymousfunctions">Translating anonymous functions</h2>
|
||||
Anonymous functions are not yet supported by pas2js. The next best thing are
|
||||
local procedures. For example:
|
||||
Anonymous functions are supported since pas2js 1.1.<br>
|
||||
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">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user