Cross compilation: Difference between revisions

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