John Kouraklis 94 Posted January 31, 2019 Hi everyone, I've ported Casbin to delphi and created Casbin4D open source project. Please check it here: https://github.com/casbin4d/Casbin4D Please feel free to comment, fork, report issues, etc. Thanks 3 Share this post Link to post
limelect 48 Posted February 1, 2019 (edited) demo d10.2.3 [dcc32 Error] Casbin.Policy.pas(604): E2010 Incompatible types: 'TStringDynArray' and 'System.TArray<System.string>' Edited February 1, 2019 by limelect Share this post Link to post
Stefan Glienke 2002 Posted February 1, 2019 Seems to be written in 10.3 where TStringDynArray is declared as TArray<string> whereas before it was a dedicated array of string. My suggestion is to not use the dynamic array types from System.Types anywhere and wherever you work with any RTL functions that use them, hardcast in order to be compatible to <10.3. Share this post Link to post
John Kouraklis 94 Posted February 1, 2019 Yeah, I only had 10.3 installed at that time. I have now installed it and will prepare a package for 10.2 and fix the code. Share this post Link to post
John Kouraklis 94 Posted February 2, 2019 I uploaded a package for 10.2 Very welcome to test and see if all is good. Also, it would be great if someone could check/test/create packages for other versions as I don't have any other installed. Please see the open issue on github. Thanks👌 Share this post Link to post
Tommi Prami 130 Posted February 4, 2019 (edited) Sounds like a interesting project. Would be way better to use library for that kind of things than to make one of your one. most likely. -Tee- Edited February 4, 2019 by Tommi Prami Share this post Link to post