Sign in Join

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

Mailing lists / lazarus / 1999-08

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

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller

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 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" wrote 23 lines
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. http://www.miraclec.com _________________________________________________________________ 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.

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

Reply by email

Michal Bukovjan

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" wrote 23 lines
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. http://www.miraclec.com _________________________________________________________________ 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

Peter Vreman
to Michal Bukovjan
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.

There is also a check in FPC, but maybe it doesn't work anymore due other changes, i'll take a

Reply by email