Phoenix SDK 2008年6月(コンパイラ用ツール)をダウンロードしました。こんにちはサンプルのコードを読んでいると、本当に失われてしまいました。C++コードで見たことのない特別な演算子についての質問
public
ref class Hello
{
//--------------------------------------------------------------------------
//
// Description:
//
// Class Variables.
//
// Remarks:
//
// A normal compiler would have more flexible means for holding
// on to all this information, but in our case it's simplest (if
// somewhat inelegant) if we just keep references to all the
// structures we'll need to access as classstatic variables.
//
//--------------------------------------------------------------------------
static Phx::ModuleUnit ^module;
static Phx::Targets::Runtimes::Runtime^runtime;
static Phx::Targets::Architectures::Architecture ^architecture;
static Phx::Lifetime ^lifetime;
static Phx::Types::Table ^typeTable;
static Phx::Symbols::Table ^symbolTable;
static Phx::Phases::PhaseConfiguration ^phaseConfiguration;
2質問:refキーワードとは何ですか? その記号は何ですか?それは、保護
を何をしているのです。
virtual void
Execute
(
Phx::Unit^unit
) override;
};
オーバーライドもC++キーワードですか?これは私のVisual Studioで色付けされています。 私は本当にこのフレームワークを使いたいと思っていますが、この高度なC++は本当に障害です。ありがとうございました。
私は、この種の「拡張機能」を防ぐために、Microsoftが何年も前に訴えた理由を推測しています。 – OscarRyz
大雑把に言えば、 –
拡張機能ではありません。これは別の言語です。それはC++ではありません。マイクロソフトはC++であると主張していません。 C++/CLIは、技術的に全く異なる獣です。 – jalf