Re: What Delphi 8 really is...

From: Jeffrey A. Wormsley (jwormsley_at_nospam.debitek.com)
Date: 01/22/04


Date: 22 Jan 2004 08:41:35 -0700


"Rudy Velthuis (TeamB)" <rvelthuis@gmx.de> wrote in
news:xn0ddilomq9j7w00n@medion3000:

> I'd have to look into it, but simply look at the differences between the
> sources you have in the source\rtl\win directories of both, and you'll
> get an immediate insight.

Looking at Windows.pas vs Borland.Vcl.Windows.pas I see the following:

1. Pointer types all seem to be changed to IntPtr
2. Many pointers to structure types replaced with
[StructLayout(LayoutKind.Sequential)] ?
3. Arrays in structures have a MarshalAs construct
4. All {$EXTERNALSYM ... gone
5. PChar, PAnsiChar etc all converted to string (or sometimes
StringBuilder, why?)
6. 'var' replaced with 'out' or sometimes 'const' (why?)
7. [in] ???
8. stdcall removed
9. Parameters of the same type not declared together anymore (
foo(x,y:byte) becomes foo(x:byte;y:byte) )
10. 'external" construct modified by '[DllImport...' construct

Some are fairly obvious, others it would be nice to know the rules for why
some are done one way and others another (the string vs StringBuilder, for
instance).



Relevant Pages

  • Re: Problem with strcat, strcpy,sprintf
    ... For pointer types, this sets the pointers to point to the ... Since this is a very common newby view, ... As a newby I'd expect this to copy the string... ... CLC FAQ ...
    (comp.lang.c)
  • Re: How to identify a pointer to a string literal
    ... The language does not provide any mechanism for determining whether a string is modifiable or not. ... Note that although I say that pointer can just be simple memory addresses, they can also be something rather more complex, so don't take what I've said as carte blanch permission to cast away warnings about incompatible pointer types, or to pass the wrong pointer type to a varidac function or anything like that. ...
    (comp.lang.c)
  • Re: Problem with strcat, strcpy,sprintf
    ... For pointer types, this sets the pointers to point to the ... > Yeah, yours is perhaps more correct phrasing, but IMO that would have ... > totally confused anyone who thought of "string" as an actual type. ... > Since this is a very common newby view, ...
    (comp.lang.c)