[lazarus] classesh.inc change required
Kevin Berry
kevinbe71 at yahoo.com
Wed Dec 22 10:47:06 EST 1999
mmmm... just thought of something...
Because " MyVar: TMyFunc;" is present wouldn't
it still do type-checking anyway.
--- Kevin Berry <kevinbe71 at yahoo.com> wrote:
> 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
>
>
_________________________________________________________________
> To unsubscribe: mail
> lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at
> http://www.miraclec.com/list_archives/lazarus
>
__________________________________________________
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