New Update

Previous topic - Next topic

Schranz0r

Yeah but realy realy realy cool to use!
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

trucidare

ich hätt da noch ne beustelle....

Simulator!!!!
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

codegit

Quote from: Schranz0r on 2009-Nov-03
Var AS Proto = Func  :whistle:

Please, please, pretty please....... :x
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

MrTAToad

What's wrong with PROTOTYPE ?

Kitty Hello

they want to assign a function to a prototype member at initialization level. It's really a nice ide, thus it will come. But it's a horror to implement for me. Everything regarding the precompiler is :P

Schranz0r

I need this :)  :whistle:
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

codegit

Quote from: Kitty Hello on 2009-Nov-06
they want to assign a function to a prototype member at initialization level. It's really a nice ide, thus it will come. But it's a horror to implement for me. Everything regarding the precompiler is :P
:'( :'( :'( :'( :'(
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

Schranz0r

Gernot made it!
we can use it hopefully on the next update!

var AS proto = func


AHHHHHHHHHH... great!
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

D2O

Kann ich das so verstehen das eine Function einer Variablen übergeben wird
und ich sie in der Art wie eine Methode nutze?
I7 2600K; 8 GB RAM ; Win10 Pro x64 | NVidia GTX 750 TI 2048MB ; Realtec OnBoard Sound;
Lenovo ThinkPad T400: XP Pro
GLB Premium-immer Aktuell

bigsofty

Cool, well done Gernot another handy addition!  :good:
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

codegit

Quote from: Schranz0r on 2009-Nov-07
Gernot made it!
we can use it hopefully on the next update!

var AS proto = func


AHHHHHHHHHH... great!

WOW....this is gooooood news  :good: :good: :good:
------------------------------------------
1 X Acer TravelMate 4270, laptop, XP PRO
1 X Dell Studio 17 laptop, Windows 7
1 X MacBook Pro 2,2 GHz Core 2 Duo, 2 GB RAM, 160 GB HDD, 9400M
2 X iTouch
1 X HTC Desire (Android 2.1)
iPad soon to be added

MrTAToad

So, what's the syntax for it ?

Schranz0r

Quote from: D²O on 2009-Nov-07
Kann ich das so verstehen das eine Function einer Variablen übergeben wird
und ich sie in der Art wie eine Methode nutze?

Jepp genau das!

MrTAToad:

Code (glbasic) Select

PROTOTYPE MyPrint: t AS TypePrint
TYPE TypePrint
x%; y%
text$
printtext AS MyPrint = TPrint
ENDTYPE
LOCAL TypePrints[] AS TypePrint
LOCAL t AS TypePrint
t.x = 10
t.y = 20
t.text$ = "Just a test!"
DIMPUSH TypePrints[], t

WHILE TRUE
t.printtext(t) // "t" call it self!
SHOWSCREEN
WEND
END

FUNCTION TPrint: t AS TypePrint
PRINT t.text$, t.x, t.y
ENDFUNCTION
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

Ah, so you are using PROTOTYPE then!

Its nifty !