English

Emojicode Language Bugs

These are bugs found in the official Emojicode compiler (master, commit 4dec45b) that have not been fixed yet. The compiler in this IDE behaves the same way.

Bugs that this IDE fixes with a patch are listed in Fixed Bugs.

Converting a real number to a string truncates instead of rounding

🔡 realNumber digits❗️ cuts off everything below the given digit. On top of that, because of floating-point error, the result can be 1 smaller than you expect.

Emojicode
🏁 🍇
  😀 🔡 3.05 2❗️❗️
  😀 🔡 3.14159❗️❗️
🍉
Output
3.04
3.141589

The correct results are 3.05 and 3.141590. 🔡 realNumber❗️ without the number of digits uses 6 decimal places, so the same thing happens.

📤, 📥, and 📯 in 📦 files do not work

The files package declares 📤, 📥, and 📯 for standard output, standard input, and standard error, but they are not implemented. Using them causes a link error.

Newer emoji cannot be used in names

Because the compiler's list of known emoji is outdated, relatively new emoji such as 🟢 and 🟡 cannot be used in type or method names. You get the compile error Expected Identifier.

Example of a compile error
🔘 🚦 🍇
  🆕▶️🔴
  🆕▶️🟢
🍉

🏁 🍇
  🆕🚦▶️🔴❗️ ➡️ light
🍉
Error
Expected Identifier