Fast Array Addition

BlitzPlus Forums/BlitzPlus Programming/Fast Array Addition

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Sorry, it doesn't :/

Just tried it and it doesn't work in Blitz because you cannot use an array by just using its brackets.

It used to work in fortran (and probably other languages) where you could say....

a[]=a[]+1

and that would increment each element by 1.

I think the only way to do it in Blitz is to copy a block of memory onto another block of memory using a mask. I'm working on it....