Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-08

[Re: RFC : Type separation]]]

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael A. Hess
to Michal Bukovjan: Now I stumbled upon this. I want to reference a simple type, like TComboBoxStyle in one…
Michal Bukovjan wrote 6 lines
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. http://www.miraclec.com

Reply by email

Michal Bukovjan

Now I stumbled upon this.

I want to reference a simple type, like TComboBoxStyle in one (sort) of TLMMessage.
This message is declared in LMessages.pp, which would have to have Controls.pp declared in the interface part.
The Controls.pp have a declaration of lmessages.pp in interface part, too. The same would apply for any type in stdctrls.pp and other, because they reference the Controls.pp.

So I end up being unable to reference these types in my messages.

BTW, this is a bug report :
The compiler does not recognize circular unit references and compiles the two circularly referenced units over and over.

Michal Bukovjan

Michal Bukovjan wrote 7 lines
"Michael A. Hess" wrote: > Michal Bukovjan wrote: > > [fairly large snippet removed] Very well, I'll reference any of the lcl units in gtkint.pp & lmessages.pp

as

Show quoted text 10 lines
needed, then. Thanks for your explanation, Michael. Michal Bukovjan ____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at

http://webmail.netscape.com.

Show quoted text 5 lines
_________________________________________________________________ To unsubscribe: mail 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.

Reply by email