Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Missing Programming Features
#41
Quote:na_th_an: I bow before your superior intellect.

You don't need to! I'm just a QB help hog.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#42
Quote:FOR inc = 1 TO 10
x = x + inc
NEXT inc

PRINT "The sum is"; x

Have:

x = [1 . . 10]
? You're not doing anything in the loop. :|
If you wanted to add inc 10 times, you could do:
x = x + inc * 10
:|

Quote:And also:

x = x + 1

Change to:

x += 1

And then have the editor make it x = x + 1 for readability..
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#43
Quote:
Quote:I think classes, function overloading/overriding, multiple inheritance, pointers and linked lists would be really great.

I can live without inheritance and classes... evil object-oriented techniques. Smile

May be you can. But not me! They make life so much simpler!
Reply
#44
Quote:
Quote:FOR inc = 1 TO 10
x = x + inc
NEXT inc

PRINT "The sum is"; x

Have:

x = [1 . . 10]


? You're not doing anything in the loop. :|
If you wanted to add inc 10 times, you could do:
x = x + inc * 10
:|

Sure he is. That translates to this:
x = x + 1
x = x + 2
x = x + 3
...and so on to:
x = x + 10

That's not the same as x = x + inc * 10. You see, he is adding inc into x 10 times, BUT inc's value is changing - it goes from 1 to 10.
Reply
#45
Oh, you're right. I didn't notice.

It's still possible to get the answer through multiplication, though.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#46
And the other idea of mine is very familiar to PHP proggers... any other lingos use it?

Back to the first idea: Indigo showed it to me as an example of some language syntax where the lingo was dedicated to number crunching... It'd be so much easier to write that sort of statement. And it would be easier to write too, especially if you don't start with 1 eg [234 . . 3765]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)