[lazarus] classesh.inc change required

Kevin Berry kevinbe71 at yahoo.com
Wed Dec 22 10:34:16 EST 1999


OUCH!  You have a good point...
I'd agree with you that using the typing is better,
then at least the compiler can pick up the type
mismatch.

--- Marc Weustink <Marc.Weustink at cuperus.nl> wrote:
> Thinking of this brought me to a drawback on using
> the @ operator.
> Depending on the $T (or $TYPEDADDRESS) flag the
> result of the @ operator is
> typed or untyped. In most cases you use untyped
> pointers (?). This means
> that the following is correct
> 
> type
>   TMyFunc: function:Integer;
> 
> var
>   MyVar: TMyFunc;
> 
> function MyFunc:Interger;
> function MyOtherFunc: TSomething;
> procedure MyProc;
> 
> MyVar := @MyFunc;
> MyVar := @MyOtherFunc; (??)
> MyVar := @MyProc;      (??)
> 
> Marc
> 
> 

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com






More information about the Lazarus mailing list