[Implemented] PB4B11 PB List as argument in Interface ?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

[Implemented] PB4B11 PB List as argument in Interface ?

Post by Flype »

At the moment we can't do this :

Code: Select all

Interface MYOBJECT
  clear.l()
  count.l()
  free.l()
  copy.l(list.s())
EndInterface
could very be useful.
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
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Well, since interfaces was made to access object orient modules like COM and the format of PB linked lists are private to PB, well you get the point I think.
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

yes but as we can create custom interface, i think it would be more consistent when programming in an oop approach.
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
Post Reply