Myles Penlington wrote:
Nope, That is the most efficient form ie (A = ''). The compiler does a nice
job of optimising it - basically a single instruction - ignoring the jmp

eg cmp dword ptr [es],$00
jnz ...

Well, I always thought the non-intuitive (Pointer(A) = nil)
smoked, but it compiles to the same as (A='') anyway.

Cheers, Kurt.

---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/


Reply via email to