Ronny Otto

Results 602 comments of Ronny Otto

I assume it has a null access in this "mymethod()" call but fails to jump "into" it ... ![maxide_structs](https://user-images.githubusercontent.com/2625226/96557806-124aac00-12bb-11eb-9df7-73263b12ce3c.png) As you see - the struct which has the method is...

OK ... so why does it fail there? I have a method - the only one "tackling" my (non static) arrays ``` Method EnsureDynamicArraySize(size:Int) If lineinfo_boxHeightsDynamic.length

Another reminder: I pass many structs as __VAR__ ! maybe this creates the issue ? Edit: attached the "sample" code: File to compile: Dig-master/samples/guisamples/textarea.bmx [Dig-mastersegfault2.zip](https://github.com/bmx-ng/bcc/files/5407338/Dig-mastersegfault2.zip) When it starts up (if...

If I replaced "struct" with "type" then everything works: ```BlitzMax SuperStrict Framework Brl.StandardIO Local k:TKeyWrapper = New TKeyWrapper Type TKeyWrapper Field keyHoldInformation:SKeyHoldInformation[5] Field key100:SKeyHoldInformation Method New() For Local i:Int =...

Generated C code for this piece of code: ```BlitzMax keyHoldInformation[i].Init(100) ``` is: ```C struct _m_untitled1_SKeyHoldInformation bbt_=((struct _m_untitled1_SKeyHoldInformation*)BBARRAYDATA(o->__m_untitled1_tkeywrapper_keyholdinformation ,1))[((BBUINT)bbt_i)]; __m_untitled1_SKeyHoldInformation_Init_v_i((struct _m_untitled1_SKeyHoldInformation*)&bbt_,100); ``` So ... is this actually doing this: - extract...

Can't you put stuff "toSemant" on a perfile(+include) list and then process them in order. Or do a first step and scan for globals. Now you know the position (LOC)...

> Or do a first step and scan for globals. Now you know the position (LOC) of a global definition. If a function call (entry-line is important) or normal access...

Didn't NG conditionals support expressions (unintended) already? You could consider breaking backwards compatibility... By using `@define`. Or keep it by making it `'@bmk define` or so. Vanilla interprets unknown conditionals...

For now it gets only handled on "top level" (in `Method ParseCurrentFile:Int(path:String, attrs:Int)` of parser.bmx). I think it should be handled in a custom method/function (`ParseInclude()`) as it needs to...

No reason to not make it work...or is there one?