perlang-org / perlang

The Perlang Programming Language
https://perlang.org
MIT License
16 stars 1 forks source link

(compiler) Add partial inline C++ support #462

Closed perlun closed 4 months ago

perlun commented 4 months ago

This change adds support for writing entire methods in C++. It lets you declare the prototype(s), using a special preprocessor directive, and similarly for the actual method implemention.

What we don't support is something like:

cpp {
  // C++ code here inside a Perlang function
}

...and this is also something we don't see a strong need for right now. Will leave this as-is, and might consider implementing the above at some point if the need arises.

Related issue