Search found 13 matches

by rochus
Sun Jan 24, 2021 1:52 pm
Forum: Component Pascal
Topic: Assigning values to pointers or passing pointers to VAR args
Replies: 12
Views: 20814

Re: Assigning values to pointers or passing pointers to VAR

Thanks. Well, I guess little work compared to the Blackbox framework, including the Linux port. >> is it correct to say that due to your CP->Oberon+ transpiler it is now somewhat possible to compile CP into Lua bytecode? The Oberon+ parser and validator are not yet complete (e.g. the whole generics ...
by rochus
Sat Jan 23, 2021 4:11 pm
Forum: Component Pascal
Topic: Assigning values to pointers or passing pointers to VAR args
Replies: 12
Views: 20814

Re: Assigning values to pointers or passing pointers to VAR

Thank you both again for your feedback. >> If you are in a position to draft a new or improved section for the document Well, I'm neither a Blackbox framework nor a Component Pascal expert; all I currently do is "trial and error"; likely not a good enough qualification to contribute to doc...
by rochus
Sat Jan 23, 2021 12:14 am
Forum: Component Pascal
Topic: Assigning values to pointers or passing pointers to VAR args
Replies: 12
Views: 20814

Re: Assigning values to pointers or passing pointers to VAR

Thank you Robert and Adimetrius for your support. I was able to infer and verify the following rules with untagged assignments so that only half a dozen unresolved cases remain: If the left hand side of the assignment is a pointer to an untagged record or array, then the right hand side is assignmen...
by rochus
Fri Jan 22, 2021 3:57 pm
Forum: Component Pascal
Topic: Assigning values to pointers or passing pointers to VAR args
Replies: 12
Views: 20814

Re: Assigning values to pointers or passing pointers to VAR

Thanks again for your reply. I now added the lhs and rhs types to my examples and numbered them. >> but I would expect it to be explained in "Language Specific Issues", not in the Language Report I also read that document, but didn't find enough information to deduce this to be legal. But ...
by rochus
Fri Jan 22, 2021 12:59 pm
Forum: Component Pascal
Topic: Assigning values to pointers or passing pointers to VAR args
Replies: 12
Views: 20814

Re: Assigning values to pointers or passing pointers to VAR

Thanks for your reply. Here are some examples I found in the 1.7.2 Windows Blackbox framework: (module, procedure, statement, lhs type, rhs type) 1. HostCFrames, WinInsertItem, tvi.pszText := s, pointer to array [untagged] of char, array 256 of char 2. HostCFrames, InitClass, class.lpszClassName := ...
by rochus
Fri Jan 22, 2021 11:36 am
Forum: Component Pascal
Topic: Assigning values to pointers or passing pointers to VAR args
Replies: 12
Views: 20814

Assigning values to pointers or passing pointers to VAR args

After studying several versions of the Component Pascal language report including the Windows and Linux amendments still many questions remain. E.g. why is it possible to assign (:=) a value, e.g. a non-open ARRAY OF T, to a pointer of the value type, e.g. a POINTER TO ARRAY OF T? How can I infer th...
by rochus
Sun Dec 13, 2020 2:29 pm
Forum: Common questions
Topic: source code
Replies: 13
Views: 15525

Re: source code

I'm not yet familiar with the Blackbox implementation, just had a look at the code in https://github.com/bbcb/bbcp. "platform dependent" is each module whose implementation or API changes with the platform. In bbcp there seem to be quite many of these, accross many subsystems. It's a lot o...
by rochus
Sun Dec 13, 2020 9:26 am
Forum: Common questions
Topic: source code
Replies: 13
Views: 15525

Re: source code

There are several alternatives how to integrate with Qt. For example, in my version of the Oberon System (https://github.com/rochus-keller/oberonsystem/) I simply replaced "Oberon.Loop" by callbacks from the Qt window in which the Oberon system operates. In my Smalltalk-80 VMs (https://git...
by rochus
Sat Dec 12, 2020 10:54 pm
Forum: Common questions
Topic: source code
Replies: 13
Views: 15525

Re: source code

Thanks for the hint. Looks interesting. It's not the proposed approach though. Qt covers all OS features including internationalization, threading, file system, networking and of course all GUI features including fonts and such, thus able to replace a lot of platform specific code in https://github....
by rochus
Sat Dec 12, 2020 8:49 pm
Forum: Common questions
Topic: source code
Replies: 13
Views: 15525

Re: source code

That's interesting, thanks for the hint. Here is the Github link: https://github.com/bbcb/bbcp. I just downloaded and tried the Linux archive version; looks impressive. As it seems a lot of code is platform specific; wonder whether one could save time by using e.g. something like Qt.