Page 2 of 3

Posted: Wed Oct 02, 2002 9:13 am
by BackupUser
Restored from previous forum. Originally posted by Rings.
i got another simple question, is it necessary that we need all these commands like startdrawing etc? many people who code games dislike that, and i wonder why you dont really need that start/stop commands in other languages... maybe purebasic can get rid of it... i dont know!
PureBasic is not a Gamer'Only Language.With Startdrawing(Pointer) you specify on which Screen should be drawn.This can be a DX-Fullscreen, a Window, a Image .

Its a long way to the top if you wanna .....CodeGuru

Posted: Wed Oct 02, 2002 9:18 am
by BackupUser
Restored from previous forum. Originally posted by Kendrel.

I know, but iam quite sure you could remove it... atleast iam sure i could write an external editor which would add that commands (if needed) before it compiles.

Also i know that purebasic isnt a gaming language, but it easily could become good one, and should be as easy as possible... that way, purebasic would sell a little better and the community would be growing... and that would be good for everyone!

Posted: Wed Oct 02, 2002 3:05 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

StartDrawing() is absolutely needed. In other langage you have to lock the screen befroe, no ? This is the same.

Fred - AlphaSND

Posted: Wed Oct 02, 2002 3:23 pm
by BackupUser
Restored from previous forum. Originally posted by Kendrel.

Umm... yes, you need it when you compile it...

but there are other start/stop commands (specialfx,sprite3d) etc... and all this is needed? not sure... the editor could insert that commands when he compiles the code... and iam sure something like this could be done... whatever... i dont wanna complain too much.. :)

Kendrel

p.s. an optional THEN after an IF would be nice... its more basic :)

Posted: Wed Oct 02, 2002 3:48 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.

topics about the 'THEN' we have long time ago.
As a Basic-Programmer since 15 years i work with the THEN.
I came from Microsoft-languages and have to learn some new stuff and syntax with PureBasic but believe me:
THEN is absolutly not needed, to say it's useless.
Its only for 'more readable' in Conditions , and of course while you convert some other Basic's Code to Pure.Nothing else.


Its a long way to the top if you wanna .....CodeGuru

Posted: Wed Oct 02, 2002 4:12 pm
by BackupUser
Restored from previous forum. Originally posted by fweil.

...,

But Purebasic has a THEN equivalent

IF something ; THEN
dothis
ELSE
dothat
ENDIF

Francois Weil
14, rue Douer
F64100 Bayonne

Posted: Wed Oct 02, 2002 4:25 pm
by BackupUser
Restored from previous forum. Originally posted by Franco.
Originally posted by fweil

...,

But Purebasic has a THEN equivalent

IF something ; THEN
dothis
ELSE
dothat
ENDIF

Francois Weil
14, rue Douer
F64100 Bayonne


Francois, thank you for the hint, I will add it to my code.

Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.

Posted: Wed Oct 02, 2002 5:29 pm
by BackupUser
Restored from previous forum. Originally posted by Berikco.
Originally posted by fweil

...,

But Purebasic has a THEN equivalent

IF something ; THEN
dothis
ELSE
dothat
ENDIF
I like this one Francois...my stumac is still roling around

Regards,

Berikco

http://www.benny.zeb.be

Posted: Wed Oct 02, 2002 5:50 pm
by BackupUser
Restored from previous forum. Originally posted by fweil.

This was my today's trick ... tomorrow is another day !

Francois Weil
14, rue Douer
F64100 Bayonne

Posted: Wed Oct 02, 2002 5:55 pm
by BackupUser
Restored from previous forum. Originally posted by Kendrel.

Nice one :)

But it seems that iam not the only one who's missing the THEN, and i think it would be nice if it would be optional... and it shouldnt be too hard to do... and it is BASIC, not C/C++ :)

Posted: Wed Oct 02, 2002 6:31 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.
But Purebasic has a THEN equivalent

IF something ; THEN
dothis
ELSE
dothat
ENDIF
Yiiiiieeeeepiiie i have my missing THEN found.thx :)

Its a long way to the top if you wanna .....CodeGuru

Posted: Wed Oct 02, 2002 8:15 pm
by BackupUser
Restored from previous forum. Originally posted by Danilo.

Just change your coding style and you dont need THEN again :)

You have to learn something new in every language and
THEN is useless... you can live with that after a while.
You get used to it...

cya,
...Danilo

(registered PureBasic user)

Posted: Wed Oct 02, 2002 8:29 pm
by BackupUser
Restored from previous forum. Originally posted by Franco.

Maybe Fred could implement a new type of command, a 'DeathString'.
If you add a 'DeathString' to your code it will be complitely ignored!

Also he could make this function extendable trough the user so everybody could add his 'DeathString'.

THEN could be a start.

Sure some people in this forum have her own prefered words... like BEER, WOW etc.

:)

Take care.

Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.

Posted: Wed Oct 02, 2002 8:44 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

More seriously, THEN can be ok for one line statements:

If a=10 Then b=20

instead of:

If a=10 : b = 20 : EndIf

Fred - AlphaSND

Posted: Wed Oct 02, 2002 8:56 pm
by BackupUser
Restored from previous forum. Originally posted by Franco.

In some languages you will find 'Case' instead 'If' for a one line statement.

If you can tell 'If' don't look for your 'EndIf' if there is a 'Then' - go for it :)

Otherwise you have to create something like 'IfCase':

IfCase a=10 Then b=20


Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.