Sign in Join

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

Mailing lists / lazarus / 1999-08

TList and TStringList again...

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller

Actually the error does NOT occur on the FOR statement like previously mentioned. It appears after that when I try to do a

If (Something[I].Line >= TopLine) and (Something[I].Line < TopLine+LinesInWindow) then ..
.
Sorry for the missinformation in my previous email.

Shane

>> "Samuel Liddicott" 08/16 8:42 AM >>>
Show quoted text 14 lines
-----Original Message----- From: Shane Miller Sent: 16 August 1999 02:19 PM To: Subject: [lazarus] inherited I see in Delphi you can simply place Inherited; in a procedure and it'll call the inherited procedure automagically. Can we add this to FPC please. I need it for compatability.

in Delphi 1 this only works for message handler procedures. I think in Delphi 4 it will call any inherited procedure with the same arguments.

Sam

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

Michael Van Canneyt
to Shane Miller
Shane Miller wrote 5 lines
Actually the error does NOT occur on the FOR statement like previously mentioned. It appears after that when I try to do a If (Something[I].Line >= TopLine) and (Something[I].Line < TopLine+LinesInWindow) then ..

Can you send the correct code ? The above makes no sense with neither TList nor TStringlist; and since I use a lot of loops on Tlists and TStringlists I know that these work; so I'd like to see the correct code.

Michael.

Baeseman, Cliff

Michael ,

can we just call external to reference a C++ lib such as in QT. I just assumed we could not because of the name mangling that occurs in compiled C++ libs.

It makes little difference, I am not doing that right now. I am just looking at my available options.

Cliff

Earlier message 30 lines
-----Original Message----- From: Michael Van Canneyt Sent: Monday, August 16, 1999 9:54 AM To: Subject: Re: [lazarus] TList and TStringList again... On Mon, 16 Aug 1999, Shane Miller wrote: > Actually the error does NOT occur on the FOR statement like previously mentioned. > It appears after that when I try to do a > > If (Something[I].Line >= TopLine) and (Something[I].Line < TopLine+LinesInWindow) then > .. Can you send the correct code ? The above makes no sense with neither TList nor TStringlist; and since I use a lot of loops on Tlists and TStringlists I know that these work; so I'd like to see the correct code. Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus
Baeseman, Cliff

Well I am not using any c interface at the moment to talk to qt at all and no extern calls either. The whole thing I am messing with at the moment is using unix sockets to work with the qt engine...

In this fashion I have total control over the way in which I implement the qt side without affecting the lcl in any way.

IOW I am just going to provide messaging thru a sockets implementation. This may be a very cool way to implement because it would open some big web type capabilities as well.

Cliff

Earlier message 50 lines
-----Original Message----- From: Michael Van Canneyt Sent: Monday, August 16, 1999 10:45 AM To: Subject: RE: [lazarus] TList and TStringList again... On Mon, 16 Aug 1999, Baeseman, Cliff wrote: > Michael , > > can we just call external to reference a C++ lib such as in QT. I just > assumed we could not because of the name mangling that occurs in compiled > C++ libs. You can do that, no problem. If you solve the name mangling by yourself, I see no problem in it. The MAIN reason we don't support C++ is not the name mangling; the main reason is the multiple inheritance. We are planning to do something like TQTClass = cppclass (some,parent,classes) Method1 Method end; But for this the compiler needs to have a notion of multiple inheritance and the way the VMT's are constructed in C++ This will take some time before it will be implemented... > > It makes little difference, I am not doing that right now. I am just looking > at my available options. I see no problem in what you are doing; in fact the C interface to the QT C++ libs does exactly that: it provides C calls that map to C++ mangled names methods; So in FPC it should work just as well... Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus
Michael Van Canneyt
to Baeseman, Cliff: can we just call external to reference a C++ lib such as in QT. I just assumed we could…
Cliff wrote 5 lines
Michael , can we just call external to reference a C++ lib such as in QT. I just assumed we could not because of the name mangling that occurs in compiled C++ libs.

You can do that, no problem. If you solve the name mangling by yourself, I see no problem in it.

The MAIN reason we don't support C++ is not the name mangling; the main reason is the multiple inheritance.

We are planning to do something like
TQTClass = cppclass (some,parent,classes)
Method1
Method

    end;

But for this the compiler needs to have a notion of multiple inheritance and the way the VMT's are constructed in C++ This will take some time before it will be implemented...

It makes little difference, I am not doing that right now. I am just looking at my available options.

I see no problem in what you are doing; in fact the C interface to the QT C++ libs does exactly that: it provides C calls that map to C++ mangled names methods; So in FPC it should work just as well...

Michael.

Shane Miller

There is name mangling, but all you do is put a cdecl at the end of it (like the gtk headers) and it'll work (should work).

Shane

>> "Baeseman, Cliff" 08/16 10:01 AM >>>

Michael ,

can we just call external to reference a C++ lib such as in QT. I just assumed we could not because of the name mangling that occurs in compiled C++ libs.

It makes little difference, I am not doing that right now. I am just looking at my available options.

Cliff

Earlier message 35 lines
-----Original Message----- From: Michael Van Canneyt Sent: Monday, August 16, 1999 9:54 AM To: Subject: Re: [lazarus] TList and TStringList again... On Mon, 16 Aug 1999, Shane Miller wrote: > Actually the error does NOT occur on the FOR statement like previously mentioned. > It appears after that when I try to do a > > If (Something[I].Line >= TopLine) and (Something[I].Line < TopLine+LinesInWindow) then > .. Can you send the correct code ? The above makes no sense with neither TList nor TStringlist; and since I use a lot of loops on Tlists and TStringlists I know that these work; so I'd like to see the correct code. Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus