Polyglot

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo |formattype=electronic |subcat=Elements of File Formats }} A '''polyglot''' is a source code or file which constitutes valid data in two or more distinct ...")
 
m
 
Line 5: Line 5:
 
A '''polyglot''' is a [[source code]] or [[file]] which constitutes valid data in two or more distinct formats simultaneously.
 
A '''polyglot''' is a [[source code]] or [[file]] which constitutes valid data in two or more distinct formats simultaneously.
  
An example of a '''polyglot file''' would be an image file which contains embedded [[ZIP]] data, which can be read by changing the file extension to .zip and opening it in a decompression program.
+
An example of a '''polyglot file''' would be an image file which can be viewed normally, but also contains embedded [[ZIP]] data, which can be read by changing the file extension to .zip and opening it in a decompression program.
  
 
A '''polyglot program''' is source code which can be interpreted in two or more different programming languages.
 
A '''polyglot program''' is source code which can be interpreted in two or more different programming languages.

Latest revision as of 22:46, 6 September 2025

File Format
Name Polyglot
Ontology

A polyglot is a source code or file which constitutes valid data in two or more distinct formats simultaneously.

An example of a polyglot file would be an image file which can be viewed normally, but also contains embedded ZIP data, which can be read by changing the file extension to .zip and opening it in a decompression program.

A polyglot program is source code which can be interpreted in two or more different programming languages.

[edit] See also

[edit] External links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox