2008 년 6 월 Phoenix SDK (컴파일러 용 도구)를 다운로드했으며 Hello 샘플의 코드를 읽을 때 정말 실종되었습니다.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++은 현재 정말로 장애물입니다. 고맙습니다.
나는 이런 종류의 "향상된 기능"을 막기 위해 Sun이 Microsoft에서 고소 한 이유가 여기에 있다고 생각합니다. – OscarRyz
대체로 말하면 –
개선되지 않았습니다. 이것은 별도의 언어입니다. C++이 아닙니다. Microsoft는 C++이라고 주장하지 않습니다. C++/CLI는 기술적으로 완전히 다른 짐승입니다. – jalf