Recent

Author Topic: FreePascal And C++  (Read 15022 times)

gen_

  • Newbie
  • Posts: 1
FreePascal And C++
« on: May 30, 2009, 08:19:16 am »
Will In the future be marketed C++ in Lazarus or FreePascal  remain?

Loesje

  • Full Member
  • ***
  • Posts: 168
    • Lazarus Support website
Re: FreePascal And C++
« Reply #1 on: May 30, 2009, 06:10:15 pm »
imho, it's impossible to let Lazarus work with fpc, because it's completely designed to use the features of pascal, which c++ doesn't have.

There are enough ide's for c++, if you think they are not as good as Lazarus, that's more because it's more difficult to build a good ide for c++, because the language is not that user-friendly...

CMeurin

  • New Member
  • *
  • Posts: 14
Re: FreePascal And C++
« Reply #2 on: May 30, 2009, 06:18:27 pm »
There is wxVCL, a C++ port of LCL that uses wxWidgets as its base. It doesn't seem to be going anywhere currently, and it's just the raw source that's provided (C++ source files only, no project files, no makefiles, no docs...)

EDIT: Their Sourceforge SVN appears to have what the release distribution lacks.
« Last Edit: May 30, 2009, 06:25:04 pm by CMeurin »

CMeurin

  • New Member
  • *
  • Posts: 14
Re: FreePascal And C++
« Reply #3 on: May 30, 2009, 06:26:16 pm »
imho, it's impossible to let Lazarus work with fpc

Don't you mean C++?

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: FreePascal And C++
« Reply #4 on: May 30, 2009, 06:54:39 pm »
FreePascal will remain. Lazarus and FreePascal, are one thing, like a man and a woman, two things, but still one! (:-)) )
Use Visual Studio, if you really want to use that old, inferior language C++ is (ha ha).
What would be the reason to implement C++ in Lazarus? FreePascal is able to do everything C++ can do,....

CMeurin

  • New Member
  • *
  • Posts: 14
Re: FreePascal And C++
« Reply #5 on: May 30, 2009, 07:36:59 pm »
Speaking of VS, I checked out 2010 beta and... wow, it's pretty lame. I like how C++ nerds call Pascal old and inferior because it was made in the 70s. Guess when C was made? :P Yeah, don't throw stones in glass houses...

Sure Pascal does leave a few things to be desired (sophisticated macros (parameters, stringenizing, tokenizing, multiline), better generics like Delphi '09) but C++ leaves A LOT to be desired (range types, class properties, simplified frameworks, free frameworks and software as unique as Lazarus.

I don't know if FP supports multiple inheritance though. If not, that would be something to work on.

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: FreePascal And C++
« Reply #6 on: May 31, 2009, 01:33:05 am »
I don't know if FP supports multiple inheritance though. If not, that would be something to work on.

And why would it be something to work on? Delphi and FPC do not support multiple inheritance. Neither does C#, for that matter. That, in itself, is an answer.
« Last Edit: May 31, 2009, 02:00:20 am by Troodon »
Lazarus/FPC on Linux

CMeurin

  • New Member
  • *
  • Posts: 14
Re: FreePascal And C++
« Reply #7 on: May 31, 2009, 02:44:31 am »
I just think it's suitable in rare occasions..... wait, yeah, multiple inheritance is pretty useless. You're right.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1222
    • Burdjia
Re: FreePascal And C++
« Reply #8 on: June 02, 2009, 03:00:00 pm »
I don't know if FP supports multiple inheritance though. If not, that would be something to work on.
I agree with Troodon. Anyway Object Pascal introduces INTERFACEs, wich are so useful and less confusing and more flexible than multiple inheritance.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

CMeurin

  • New Member
  • *
  • Posts: 14
Re: FreePascal And C++
« Reply #9 on: June 02, 2009, 11:39:04 pm »
True... but interfaces cannot implement methods. Suppose you want a set of methods not in the inherited class.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FreePascal And C++
« Reply #10 on: June 03, 2009, 11:19:42 am »
Ever heard of Diamond problem? That's why multiple inheritance through interfaces is better.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1222
    • Burdjia
Re: FreePascal And C++
« Reply #11 on: June 23, 2009, 09:16:36 am »
Ever heard of Diamond problem? That's why multiple inheritance through interfaces is better.
My experience tells me that "Diamond problem" is a bad design. When I did used to program C++ I found problems with that and I always solved them with a new design without diamonds. ;D
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018