It is currently Mon Jun 17, 2019 10:25 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 104 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject:
PostPosted: Tue Aug 04, 2009 5:07 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13590
Location: France
Kale wrote:
In fact i think i read somewhere in another thread that Fred wouldn't even know where to begin implementing OOP in PB (me neither), it would take a massive redesign and a huge amount of learning on his part.


Dunno where you read this, but i won't have to learning anything to build an object oriented version of PB. I do use object language on daily basis (C++ and JAVA) and trust me, it's not that difficult to do a compiler which handle that (there is quite some BASIC around with OOP support btw). The fact is you can't have both approach in the same langage. C++ is a real mess in this regards. You can still code in procedural way and object oriented way, at the same level, in the same programs. It result is very hard to maintain code, especially from old C ports which have been 'objectized'.

Now, we have some plan for PB to handle bigger programs, but that's only a draft for now, and we have to implement it. Stay tuned.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 04, 2009 5:15 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10517
Location: Beyond the pale...
I seem to remember you saying years ago Fred that the compiler would need a complete redesign before it could support OOP in any meaningful way? Perhaps it is to that comment which Kale referred?

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 04, 2009 5:43 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 6:03 pm
Posts: 3000
Location: Lincoln, UK
Fred wrote:
Now, we have some plan for PB to handle bigger programs, but that's only a draft for now, and we have to implement it. Stay tuned.

OMG, tell us more, more, more! :shock: 8)

_________________
--Kale

Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 04, 2009 5:45 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10517
Location: Beyond the pale...
I am guessing modules perhaps? Those that compiler to static object files.

Then again, my guesses are never very reliable! :)

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 04, 2009 6:00 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Nov 08, 2005 7:59 am
Posts: 208
Location: Germany
@srod

daydreamer :D


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 04, 2009 6:05 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10517
Location: Beyond the pale...
hallodri wrote:
@srod

daydreamer :D


lol.

:lol:

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 04, 2009 6:54 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13590
Location: France
srod wrote:
I seem to remember you saying years ago Fred that the compiler would need a complete redesign before it could support OOP in any meaningful way? Perhaps it is to that comment which Kale referred?


This is true, it would need a major overhaul as it hasn't been build for it from the start. That doesn't mean it would be hard but probably very time consuming ;)


Top
 Profile  
Reply with quote  
 Post subject: The Times They Are A-Changin?
PostPosted: Sun Aug 09, 2009 8:32 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Feb 03, 2004 12:32 am
Posts: 167
Fred wrote:
Now, we have some plan for PB to handle bigger programs, but that's only a draft for now, and we have to implement it. Stay tuned.


In accord BASIC acronym I consider PureBasic as a tool for casual programmers („beginers“). Small a medium tasks are typical for such users.Objects are not essential.
I (and many others) like PB just for simple procedural syntax.

In 2005/10 Fred said in one interview:“ I don't plan to add class and such I think it will split the PB world in 2 classes (!): the one which have understood fully how OOP work and other which don't. Which means than you couldn't share source codes easily anymore at one place. Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)”

Is this opinion still valid?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 09, 2009 9:34 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Jan 31, 2006 9:43 am
Posts: 485
Location: France
it's as simple as creating two sections in the forum ...

_________________
Niffo


Top
 Profile  
Reply with quote  
 Post subject: Re: The Times They Are A-Changin?
PostPosted: Sun Aug 09, 2009 1:32 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13590
Location: France
Lubos wrote:
In 2005/10 Fred said in one interview:“Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)”

Is this opinion still valid?


Yes, it's still valid. It's exactly what i wrote above :)


Top
 Profile  
Reply with quote  
 Post subject: Re: The Times They Are A-Changin?
PostPosted: Sun Aug 09, 2009 5:36 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 6:03 pm
Posts: 3000
Location: Lincoln, UK
Fred wrote:
Lubos wrote:
In 2005/10 Fred said in one interview:“Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)”

Is this opinion still valid?


Yes, it's still valid. It's exactly what i wrote above :)

Fred, have you ever though of developing a language that isn't targetted at beginners? A complete new language using OOP from the ground up? I'd buy such a thing. :wink:

_________________
--Kale

Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 09, 2009 6:44 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6058
I hope that never happens... unless that's what it takes to keep Fred's bank account in the black and PureBasic alive...

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X 32GB RAM Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Aug 10, 2009 8:17 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Jan 25, 2005 7:01 pm
Posts: 460
Location: Canada
Thoughtfully, if you want a language which is not beginner oriented, you've got some choice already available on the market. I can't see any point to a Fred-developed, hard to use language... Still, to me, OOP isn't that hard to write and is easier to read (tell me, when you open a year-old procedural code, can you immediately understand what you were doing?).
But I still enjoy PB the way it is.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Aug 10, 2009 9:33 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 6:03 pm
Posts: 3000
Location: Lincoln, UK
I just want a version of C# or Java which compiles natively through FASM! :P

_________________
--Kale

Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Aug 10, 2009 10:48 am 
Offline
Enthusiast
Enthusiast

Joined: Tue Jan 25, 2005 7:01 pm
Posts: 460
Location: Canada
Let's say: I would like PureBasic to compile under Android (google's smartphone OS) for the 4.50... 4.60 worse case scenario :twisted:


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 104 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye