Lyricdev
GitHub

LYR-MIG0616

a function bound to .NET

hint · spec 14-cli

A note of lyric fix --from-4: an extern "dotnet" binds a function of .NET, which Lyric 5 runs without.

Explanation

Lyric 4 ran on .NET and bound its static methods. Lyric 5 is native, and C is its one foreign border (LYR-SEM0099).

Use the function of std that does the same, as std.math for Math.Cbrt and std.os for Environment, or bind a C library with extern "C".

Example

by hand[LYR-MIG0616] main.lyr:1:8: 'cbrt' binds a function of .NET, and Lyric 5 runs without it — use the function of std that does this, or bind a C library with 'extern "C"'