Selaa lähdekoodia

pastojs: anonymous functions docs

git-svn-id: trunk@40530 -
Mattias Gaertner 6 vuotta sitten
vanhempi
commit
ac94267311
2 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 2 0
      packages/pastojs/src/fppas2js.pp
  2. 3 2
      utils/pas2js/docs/translation.html

+ 2 - 0
packages/pastojs/src/fppas2js.pp

@@ -356,6 +356,8 @@ Works:
 - modeswitch OmitRTTI
 - debugger;
 - anonymous functions
+  - assign
+  - pass as argument
 
 ToDos:
 - do not rename property Date

+ 3 - 2
utils/pas2js/docs/translation.html

@@ -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>