Pragmatic directives: Difference between revisions

Content added Content deleted
(Scala solution added)
Line 623: Line 623:
=={{header|Scala}}==
=={{header|Scala}}==


===tailrec==
<lang Scala>@tailrec</lang>
=={{header|Tcl}}==
=={{header|Tcl}}==
Mostly Tcl avoids anything like pragmas as they are a source of portability trouble. However, certain global variables can be set to induce non-standard behaviors:
Mostly Tcl avoids anything like pragmas as they are a source of portability trouble. However, certain global variables can be set to induce non-standard behaviors: