Ronny Otto

Results 171 issues of Ronny Otto

@MidimasterSoft wrote at discord: > There was a question on SyntaxBomb about arrays. During the answer I found out, that this wrong code line does not raise an error message...

This code: ```BlitzMax SuperStrict Framework Brl.StandardIO Function CallFunc() exit End Function ``` Correctly results in: ``` [ 9%] Processing:local_subfunc.bmx Compile Error: Exit statement must appear inside a loop. [/Testcodes/bmx_tests/local_subfunc.bmx;5;0] Compilation...

a user had an issue reported in discord. I extracted the original problem: ```BlitzMax SuperStrict Type TPlayer Field x:Int End Type Local list:TList = New TList() For local o:object =...

Use the following files: test.bmx: ```Blitzmax SuperStrict Framework brl.standardio Import "aud.bmx" Print "here" ``` aud.bmx: ```Blitzmax SuperStrict Framework brl.basic Import "external.h" Extern Function test_struct:Int(f:Byte Ptr, chan:Int) = "int test_struct(struct mystruct*,...

When importing a file which imports an ".h" file to define external function, this results in duplicate definitions: test.bmx ```BlitzMax SuperStrict Framework brl.standardio Import "ext.bmx" print test() print "Done." ```...

``` SuperStrict Framework Brl.StandardIO Struct STest Field X:Int Method Add:STest Ptr(value:Int) X :+ value Return Varptr Self End Method End Struct ``` lets bcc spit out: `Compile Error: Subexpression for...

![](http://i.imgur.com/LPuj5jo.png) As you see I just misspelled "TData" when trying to create a new instance of it - but BCC blamed that the __module__ "data" was not found.

https://github.com/bmx-ng/bcc/blob/37692ce0816ab9e3412d35f0d3496cfdf15e9798/ctranslator.bmx#L607 Is this code line correct? It has an odd indentation (none ;-)) so might be in there since a debugging test ?

```BlitzMax SuperStrict Framework Brl.StandardIO '!printf("hello"); 'what? '!printf("I said hello"); 'remove the comment to make it break ``` Remove the last line comment and the generated code becomes: ```C ... #line...

When compiling code containing this here: ```BlitzMax SuperStrict Framework Brl.StandardIO Type TTest Field name:String End Type Local t:TTest = Null DebugLog("name: " + t.name) '