Page 4 of 4
Posted: Wed Mar 22, 2006 2:28 pm
by Dare2
lol
Posted: Wed Mar 22, 2006 3:16 pm
by Trond
PB wrote:> Now tell me, where did you see an implementation of then which behaves
> similar to this macro? Big prize if you can!
Here's
two implementations: VB and C64. Now, where's my prize?
I already explained why it does not behave similar to VB's then.
It is not equal to Commodore 64 Basic V2 because if a then is followed by a line number on Commodore, it is interpreted as a conditional goto, jumping to the line number after then. (In PB this would be a label.)
Note that I'm not saying that this then is useless (well it is, but I'm not saying it (oups)), I simply asked where this version of then came from and no one really knew.
But we all want progress to the better, don't we? So I'm not saying that this macro shouldn't be use because it doesn't match other languages, actually more to the opposite. When the statements are surrounded by parentheses, this prevents errors because there is less confusion of which statements are effected by the if statement and which aren't.
But that doesn't make it's behaviour similar to other languages.
Prize:

Posted: Wed Mar 22, 2006 4:29 pm
by blueznl
Dare2 wrote:
But if you have a beer to hand, quaff that.

Edit: And shoot rings. Or - ooga booga - club him senseless. He started it.
quaffing... ah yes, the fine art of spilling beer without drinking it!
and clubbing! loud music, barely dressed girls! flashy lights! and more quaffing!
unless the finer point of your message escaped me... and you were talking about something totally different... <puzzled look>
Posted: Wed Mar 22, 2006 4:30 pm
by blueznl
Dare2 wrote:
I was just thinking - a novel approach for me
apocalypse is upon us!
Posted: Wed Mar 22, 2006 9:00 pm
by PB
> It is not equal to Commodore 64 Basic V2 because if a then is followed
> by a line number on Commodore, it is interpreted as a conditional goto
True, the C64 can interpret If/Then in that way. But I meant it to be used
in the traditional sense, especially considering that PureBasic doesn't use
line numbers by default.
> I simply asked where this version of then came from and no one really knew
We old-schoolers know perfectly well where it came from.
> Prize:

Thanks!
Posted: Wed Mar 22, 2006 10:22 pm
by Dare2
lol.
Clubs blueznl using a catchy beat - ooga ooga!

Posted: Sun Mar 26, 2006 5:14 pm
by SFSxOI
I read this, thanks PB for your tip.
<the most amazing thing about this whole thread to me was that you still had a C-64 around

>
Posted: Sun Mar 26, 2006 7:21 pm
by blueznl
either that or an emu
but i DO have a vic20 here, does that count as well?
Posted: Sun Mar 26, 2006 9:08 pm
by PB
@SFSxOI: I was using this ->
www.ccs64.com
But there's also this online Java version:
http://www.dreamfabric.com/c64/
Posted: Mon Mar 27, 2006 1:42 pm
by SFSxOI
WoW! I didn't realize that people were still interested in the C-64, at least to the point of actually creating an emulator for it. I had a C-64 (and a Vic-20, and a TI-99, and a TRS-80, and a PET, and an Apple) years ago when they first came out
Posted: Mon Mar 27, 2006 2:23 pm
by techjunkie
SFSxOI wrote:WoW! I didn't realize that people were still interested in the C-64, at least to the point of actually creating an emulator for it. I had a C-64 (and a Vic-20, and a TI-99, and a TRS-80, and a PET, and an Apple) years ago when they first came out
http://www.emulator-zone.com/
http://www.viceteam.org/
http://en.wikipedia.org/wiki/List_of_emulators
http://www.wbwip.com/a2web/a2emul.html
