Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

355
Visualizações
Is IL instruction "cpobj" applicable for reference types?

Microsoft Docs says:

The behavior of cpobj is unspecified if ……, or if classTok does not represent a value type.

But ECMA 335 says:

If typeTok is a reference type, the cpobj instruction has the same effect as ldind.ref followed by stind.ref.

Which is correct?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

If we look through the previous editions of ECMA-335, we find that the 3rd edition changed the wording to specify:

If typeTok is a reference type, the cpobj instruction has the same effect as ldind.ref followed by stind.ref.

In editions 1 and 2, the wording matched that on MSDN.

Therefore, I think it's safe to conclude that ECMA-335 6th edition is correct, and MSDN is out of date.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda