Re: [fpc-pascal] Class helper properties

2019-02-24 Thread Anthony Walter
Ryan, I am guessing in the declaration you need to read or write from methods on the helper only and not from fields or methods on the type you are extending. type TMyObject = class private FNum: Integer; public property Num1: Integer read FNum; end; TMyObjectHelper = class

[fpc-pascal] New feature: SQLDB Rest bridge

2019-02-24 Thread Michael Van Canneyt
Hello, We received some feedback about Pas2JS - our effort to bring Pascal to the browser - that easy database connectivity is an issue, hampering easy development. To alleviate the problem I have created the SQLDB Rest bridge. This is a set of components that allow you to expose any

[fpc-pascal] Class helper properties

2019-02-24 Thread Ryan Joseph
http://wiki.freepascal.org/Helper_types#Usage says class helpers can use properties. Why am I getting this error? program test; type TMyObject = class m_num: integer; property num1: integer read m_num; end; THelper = class helper for

Re: [fpc-pascal] Constants in generics tests

2019-02-24 Thread Ryan Joseph
I made one final commit and now I’m submitting a patch for review. I’ve probably made mistakes in the patch process but I want to get this into the pipeline so it’s not just sitting there wasting space on my computer. Tests are included now and the link to the source on git is included in the