Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi XE3: What are the new types, MarshaledString and MarshaledAString used for?

In Winapi.Windows.pas of Delphi XE3, many C types that were formerly defined as PWideChar and PAnsiChar now are defined as MarshaledString and MarshaledAString respectively (e.g. PWChar, LPSTR):

  PWChar = MarshaledString;
  LPSTR  = MarshaledAString;

Indeed, in System.pas, MarshaledString and MarshaledAString are equivalent to PWideChar and PAnsiChar respectively,

  MarshaledString  = PWideChar;
  MarshaledAString = PAnsiChar;

but what is the background behind this decision? I mean, why Embarcadero should redefine such C string types?

like image 603
Astaroth Avatar asked Nov 12 '12 21:11

Astaroth


1 Answers

Embarcadero is working on a next-generation compiler for mobile development. The changes you see are related to that effort. The technical details are not public yet, so nobody with info about it is allowed to say anything further about it.

like image 110
Remy Lebeau Avatar answered Oct 05 '22 23:10

Remy Lebeau