Skip to content

Any example of cpp2 calling c++ code? #977

Closed Answered by hsutter
felixf4xu asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome!

A class is a class regardless which syntax is used to author it. So you just use it as usual, though new is now a function call rather than a built-in language feature.

See in particular: hello, world! and objects, initialization, and memory.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by felixf4xu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants