Cross compilation: Difference between revisions

m
→‎{{header|Phix}}: added note about fixing p2js violations
(Cross compilation in FreeBASIC)
m (→‎{{header|Phix}}: added note about fixing p2js violations)
Line 41:
compiler directive "with javascript_semantics" explicitly stating that is possible, and the "without"
variant explicitly blocking it, with similar implications as requires().
The former also triggers runtime errors on desktop/Phix should incompatible operations be attempted, most
most notably use of copy-on-write semantics, and hence effectively/conversely Javascript's pass -by -sharing, and: also
addressing any such problem statements on desktop/Phix implicitly also ensures they will work in a browser.
The transpiler(/syntax colouring) also populates rosettacode with the otherwise hidden tags "(phixonline)" when javascript compatible and
"javascript compatible and (not<nowiki>online</nowiki>)" when not, the results of searching for which can be seen
''[https://www.rosettacode.org/mw/index.php?title=Special%3ASearch&search=phixonline here]'' and
''[https://www.rosettacode.org/mw/index.php?title=Special%3ASearch&search=notonline here]'' respectively.
7,796

edits