Ronny Otto

Results 602 comments of Ronny Otto

The "map = map + 1" generates: ```C (bbt_map)->clas->m__iset_ii((struct _m_untitled1_TTreeMapii_obj*)bbt_map,bbt_key,((bbt_map)->clas->m__iget_i((struct _m_untitled1_TTreeMapii_obj*)bbt_map,bbt_key)+1)); ``` while "map :+ 1" results in: ```C (bbt_map)->clas->m__iset_ii((struct _m_untitled1_TTreeMapii_obj*)bbt_map,bbt_key,1); ``` btw "map = 1" also results in: ```C...

I think the issue is that `:+` is a shortcut to `x = x +1` while the above code seems to make it `x = 1`

Parser.bmx (2539ff) a simple replacement: ``` Case "=",":*",":/",":+",":-",":&",":|",":~~","mod","shl","shr", ":shl", ":shr", "sar", ":sar", ":mod" 'replaced with Case "=",":*",":/",":+",":-",":&",":|",":~~", ":shl", ":shr", ":sar", ":mod" ``` leads then to: ``` Compile Error: Expecting expression...

While I played with replacing it: ```Blitzmax '"=","*=","/=","+=","-=","&=","|=","~~=","=","Sar=","%=" Case "=",":*",":/",":+",":-",":&",":|",":~~", ":shl", ":shr", ":sar", ":mod" ``` I saw this one (line 2569ff): ```Blitzmax If TIdentExpr( expr ) expr=New TFuncCallExpr.Create( expr,ParseArgs( True...

I am not sure if BCC should error out if someone "defines" a global somewhere where others cannot reach it. Or maybe "warn" ?

Midimaster ammended that a global in a "block" exists for the whole lifetime of the block (eg loop) ``` For Local i:Int=0 To 9 Global wert:Int=10 wert=wert+1 Print wert Next...

Changing above to: test.bmx: ```BlitzMax SuperStrict Framework brl.standardio Import "aud.bmx" Extern Function test_struct:Int(f:Byte Ptr, chan:Int) = "int test_struct(struct mystruct*, int)" Function test:Byte Ptr() = "char* test()" EndExtern Print "here" ```...

If you comment out `Function test_struct:Int(f:Byte Ptr, chan:Int) = "int test_struct(struct mystruct*, int)"` So: ```Blitzmax Extern 'Function test_struct:Int(f:Byte Ptr, chan:Int) = "int test_struct(struct mystruct*, int)" Function test:Byte Ptr() = "char*...

wrapping the external.h stuff in "ifndef" to avoid duplicate definitions ... external.h: ```C #include #include #ifndef EXTERNAL_H #define EXTERNAL_H struct mystruct { size_t something; }; int test_struct(struct mystruct *f, int...

You should wrap your code into three backticks ... to avoid github issues eating `[0]()` as link :) ```BlitzMax SuperStrict Framework Brl.StandardIO Local f:String(n:Int)[10] f[0] = Func0 f[1] = Func1...