Little Class Parser

Share your advanced PureBasic knowledge/code with the community.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Yes.

lol, stubbsi, like your sig. :D I can relate.
Dare2 cut down to size
Amundo
Enthusiast
Enthusiast
Posts: 200
Joined: Thu Feb 16, 2006 1:41 am
Location: New Zealand

Post by Amundo »

Hey fsw!

I'm interested! I was waiting for you to release...something! :)

Don't worry about what other people do/bitch about, just carry on doing what YOU enjoy doing.
Win10, PB6.x, okayish CPU, onboard video card, fuzzy monitor (or is that my eyesight?)
"When the facts change, I change my mind" - John Maynard Keynes
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

Straker wrote:New poll: whoever is interested in fsw's class parser please reply to thread.

I am interested.

And if you are not interested, please don't post anything here, this is not a debate about OOP in PB.
I am...
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
User avatar
helpy
Enthusiast
Enthusiast
Posts: 552
Joined: Sat Jun 28, 2003 12:01 am

Post by helpy »

... interested too!
Windows 10 / Windows 7
PB Last Final / Last Beta Testing
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

It seems to me that only 4 people are really interested in this (me, you and 2 others that pm'ed me), far more people are bit**ing about oop in PB.
->

Code: Select all

Class cMegaInterested
  Please()
  Please1()
  Please2()
  Please3()
  Please4()
  Please5()

  WeWill.l
  appreciate.l
  AllYour.b
  Efforts.w
EndClass
;)

I do think if your new Parser works well and gets a nice feedback, then imho Gnozal would easely integrate AutoHighlightning etc. of the new used names into jaPBe.
Much more useful beside taht imho would be a classBrowser :shock: 8)
Check out OOP support for PB here!
ToastEater
User
User
Posts: 49
Joined: Tue Jul 25, 2006 5:07 pm

Post by ToastEater »

#FSW I LOVE YOU MAN :D - PLEASE DO NEVER STOP ON THIS PROJECT I EXPECT TO GET UPDATES EVEN IF YOU ARE DEAD! :)

Just what i waited for :D m8 this is sooooo nice but one thing i wish what that it was implatanted in PB i hate to include/use other tools for make exe takes ages :(

Thanks man :D OO is really needed part in programming in large projects and not meaning large projects but i mean very large projects :D and can also improve smaller projects :D i will make my EatHTTP 4fun with classes :D will improve it so even a n00b can make a file downloading
dont turn down on my opion - this aren't mean as a offend

did I forget to say thanks m8 :D

Regards
Sorry for my damn english
amour au PB et au traducteur de google d'ofcourse
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

also interested, of course.

keep on working fsw :)
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
theNerd
Enthusiast
Enthusiast
Posts: 131
Joined: Sun Mar 20, 2005 11:43 pm

Post by theNerd »

I'm interested!! 8)
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

OK, decided to release it.
Look out for it in the Anouncement Section - if all goes well this weekend.

:P
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

thanks fsw, even I am very interested :)
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

fsw wrote:OK, decided to release it.
Look out for it in the Anouncement Section - if all goes well this weekend.

:P
kewl ..

- np
Leonhard
User
User
Posts: 55
Joined: Fri Jun 16, 2006 7:43 am

Post by Leonhard »

Can you added the keywords 'public' and 'private' in the Class?
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Sorry, but because of the way Structures and Interfaces are implemented in PureBasic, not at this point in time. Properties are stored in Structures and Methods in Interfaces.

If you need to access properties just do a method to get/set the property.
If you choose the same name you just need to add 2 parentesis to do it:

Code: Select all

;with public properties... (not PB)
debug MyClass->MyValue

Code: Select all

;with private properties... (in PB with LCP)
debug MyClass->MyValue()
Besides, I like private properties a lot :wink:
Post Reply