Re: [fpc-pascal] Property write access on records

2020-03-04 Thread Ryan Joseph via fpc-pascal
I didn't get this reply on the mail list and just looked on the mail list archive and found it! Not sure what happened or if it's going to happen again. Sven's reply: === I assume you mean "sheet.TableSize.x"? Otherwise your example makes no sense... In that case: you are working

[fpc-pascal] Passing static arrays to open arrays

2020-03-04 Thread Ryan Joseph via fpc-pascal
Here's another issue I found with open arrays. Why isn't the static array of NSArray compatible with "array of pointer"? You can assign NSArray to pointer so why is the open array different? === {$mode objfpc} {$modeswitch objectivec2} program test; uses CocoaAll; procedure Test(inp

[fpc-pascal] Objective-C mode switch overrides open arrays?

2020-03-04 Thread Ryan Joseph via fpc-pascal
The for loop thinks the open array of NSObject is an ObjectiveC array and thus gives me an error. Is this a bug? = {$mode objfpc} {$modeswitch objectivec2} program test; uses CocoaAll; procedure Test(input: array of NSObject); var obj: NSObject; begin // Incompatible