diff --git a/P%23-1.0-Draft-Specification.md b/P%23-1.0-Draft-Specification.md index a82f777..89351f7 100644 --- a/P%23-1.0-Draft-Specification.md +++ b/P%23-1.0-Draft-Specification.md @@ -141,6 +141,11 @@ Callbacks can be denoted in P# language by callback type hint. This pseudo-type int $var = $callme(); %> + <% + callback $echo = 'print'; + $echo('Hello world'); // Calls the print function on the fly + %> + ### 5.3. Character Values The char type holds a single character. The first 128 code points (0–127) of Unicode correspond to the letters and symbols on a standard U.S. keyboard. These first 128 code points are the same as those the ASCII character set defines. The second 128 code points (128–255) represent special characters, such as Latin-based alphabet letters, accents, currency symbols, and fractions. @@ -248,9 +253,4 @@ TODO ## 8. Object-Oriented Programming TODO -## Future P# Versions -This paragraph describes an ideas for future versions of P# language specification - * Pointers support - * Turn void data-type into a general purpose pointer variable - * Namespace support