FClass> can not be compiled lazarus / 62-General ---------------------------------------------------------------------- paule32 · 2024-10-09 18:16 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure foo;var    myQChar: QChar>;begin    myQChar := QChar>.Create([' ', ' ']);end; I get error at compile when using the above code. ---------------------------------------------------------------------- jamie · 2024-10-09 22:44 TArray is a generic. ---------------------------------------------------------------------- cdbc · 2024-10-10 04:42 Hi @Thaddy: I think it's his own compiler  ...hence, I haven't the foggiest... Regards Benny ---------------------------------------------------------------------- Thaddy · 2024-10-10 04:43 what is a qchar? Benny? ---------------------------------------------------------------------- cdbc · 2024-10-10 05:23 Hi It's some kind of nonsense, he dreamed up last time he was smoking the big pipe  As far as I can read of his stuff, most of it belongs in /lalalala- land/ Sorry mate, that's just my opinion... Regards Benny eta: maybe his idea of a managed string type, gawd help us... ---------------------------------------------------------------------- TRon · 2024-10-10 05:27 QChar ---------------------------------------------------------------------- cdbc · 2024-10-10 05:31 Hi @TRon: I know, I use QT daily, but his nonsense has nothing to do with qt-strings... Regards Benny ---------------------------------------------------------------------- TRon · 2024-10-10 05:37 I know that the snippet still makes no sense cdbc but he seem to have been working on implementing his own (qt) classes (at least that is what I remembered from a previous conversation with TS). @paule32: it might perhaps help if you could express what was expected that the code-snippet would do (or is suppose to do). ---------------------------------------------------------------------- marcov · 2024-10-10 06:36 Afaik that is fixed in trunk  . But I had it for a type declaration, don't know about code on the fly, I never did that. ---------------------------------------------------------------------- Thaddy · 2024-10-10 08:56 Quote from: TRon on October 10, 2024, 07:27:28 amQChar Ah, I see. Why not use UnicodeChar? That is a fundamental type. Hm, that is just size 2, - I knew that, sigh - so fails. It should be four. Did somebody complain already, because that is a bug and covers just UCS2. But there is ucs4char. Delphi behaves the same, though. ---------------------------------------------------------------------- paule32 · 2024-10-10 17:54 I use fpc 3.2.2 for using own classes that are similar to Qt 5 Framework. I use fpc with gnu c++ 20, to get a code base that can be use from fpc, and g++. The original idea was, to bundle VCL with g++, to form g++ in a C++ Builder like Compiler. But I could use Com+. But this is Windows depend, and I am not a fan of Com+. So I do experiment for cross-development. You can follow the process at my https://github.com/paule32/fpc-qt account. ---------------------------------------------------------------------- PascalDragon · 2024-10-10 18:54 Quote from: paule32 on October 09, 2024, 08:16:36 pmCode: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure foo;var    myQChar: QChar>;begin    myQChar := QChar>.Create([' ', ' ']);end; I get error at compile when using the above code. The compiler does not yet support nested specializations in mode Delphi. Either use mode ObjFPC, then you can do specialize QChar > (note the space between the two >). In mode Delphi you need to declare the array specialization separately (that solution can of course be done in mode ObjFPC as well with the appropriate specialize placements): Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i type  TCharArray = TArray;var  myQChar: QChar;begin  myQChar := QChar.Create([' ', ' ']);end.