[Re: [Re: [lazarus] RFC : Type separation]]]]

Shane Miller SMiller1 at stvgb.org
Mon Aug 9 09:20:30 EDT 1999


Why not just put a 
Comboboxstyle : Integer
inthe message instead of referring to is as a TComboBoxStyle.  Then you don't need the Controls.pp in the uses.

Shane


>>> Michal Bukovjan <mbukovjan at netscape.net> 08/09 3:36 AM >>>
I knew that :-)
Still, Delphi detects this, reports this as a bug and won't compile, so should
FPC, I think, instead of being caught in an endless loop.
And your solution would not work, because I need to have a record field of
TComboBoxStyle type in TLMWhateverMessage, which, by its nature, has to be in
interface part of lmessages.pp.
The use of lmessages.pp unit has to be in interface part of controls.pp, also,
beacuse there are some message types used in some sontrols' class declaration,
which are in interface part, too.

So, I'm stuck here. Will consider typecasting to plain integer, however, I
feel that this is far from being ideal.

Michal Bukovjan

"Michael A. Hess" <mhess at miraclec.com> wrote:
> Michal Bukovjan wrote:
> > 
> > Now I stumbled upon this.
> >  
> > BTW, this is a bug report :
> > The compiler does not recognize circular unit references and compiles
> > the two circularly referenced units over and over.
> 
> This isn't a bug this is how it is suppose to work. To get around the
> circular reference you need to declare one of the units AFTER the
> Implementation line. If they are both in the uses clause after the
> Interface line then you get the circular reference.
> 
> -- 
> ==== Programming my first best destiny! ====
> 
> Michael A. Hess      Miracle Concepts, Inc.
> mhess at miraclec.com   http://www.miraclec.com 
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>     archives at http://www.miraclec.com/list_archives/lazarus 


____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus






More information about the Lazarus mailing list