[...] The closest I came across in the documents
that sound like something like that was using 'pragmats'...
• some previously compiled portion of the particular-program
is to be invoked, e.g., PR WITH segment FROM album PR;
• the source text is continued on some other document, e.g.,
PR READ FROM another file PR;
but I'm not sure it does what I'm looking for, nor how it shall
interact with other external items (like "segment" or "album"
as given with the example above), how it's actually used/done.
Has someone experiences with this Genie-specific mechanism, or
any other suggestions how to achieve modularization with Genie?
I'm (at the moment) not too picky about the mechanism, whether
it's, say, a supported built-in syntax, a working Genie pragmat,
or a primitive include mechanism.
On 16/08/2025 01:36, Janis Papanagnou wrote:
[...]
Has someone experiences with this Genie-specific mechanism, or
any other suggestions how to achieve modularization with Genie?
I'm (at the moment) not too picky about the mechanism, whether
it's, say, a supported built-in syntax, a working Genie pragmat,
or a primitive include mechanism.
As far as I know, the only relevant pragmat in A68G is the
"include" mechanism:
PR include "some_file_name" PR
whereby the contents of "some_file_name" are textually included in
place of the pragmat. If you want/need something better,
I suggest
that you contact Marcel; I have always found him prompt and very
helpful, and open to suggestions.
Of course "something better" would be useful; thinking of name
spaces to not get into naming conflicts when merging different
libraries with own main code.
(Or maybe pre-compiled libraries.)
[...] Genie
is already so comprehensive that we can consider us enthusiasts
lucky that Marcel had done this great job!
On 16/08/2025 13:14, Janis Papanagnou wrote:
[...]
Of course "something better" would be useful; thinking of name
spaces to not get into naming conflicts when merging different
libraries with own main code.
OK. I suspect something could be lashed up without too
much difficulty; perhaps by means of a shell script.
(Or maybe pre-compiled libraries.)
A68G compilation is so fast [~20000 lines/s on my desktop]
that I've never felt the need to pre-compile anything. YMMV, esp
if you need heavy optimisation. [I don't have many programs of more
than 1000 lines.]
[...] Genie
is already so comprehensive that we can consider us enthusiasts
lucky that Marcel had done this great job!
Indeed. As previously noted, by the 1990s I was so fed up
with the infelicities of C and its relatives that I was using shell
scripts for the most unsuitable of purposes [eg, timetabling]; the
advent of A68G reminded me of the joys of programming, and I haven't
looked back over the past 20+ years.
... by the 1990s I was so fed up with the infelicities of C and its
relatives that I was using shell scripts for the most unsuitable of
purposes [eg, timetabling] ...
On 16.08.2025 12:29, Andy Walker wrote:
On 16/08/2025 01:36, Janis Papanagnou wrote:
[...]
Has someone experiences with this Genie-specific mechanism, or
any other suggestions how to achieve modularization with Genie?
[...]
As far as I know, the only relevant pragmat in A68G is the
"include" mechanism:
PR include "some_file_name" PR
Ah, I somehow missed that in the huge documentation. Something
like that is exactly what I was looking for. - Thanks!
But if I 'include' the lib to use it in some other Algol applications
there's the typical "XYZ not used" warnings. Disabling *all* warnings
(by setting the '-no-warnings' option) is of course not the solution.
...is there a way to disable those warnings for the PROCs/OPs of the
library source code without generally disabling the warnings for other entities?
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,064 |
Nodes: | 10 (0 / 10) |
Uptime: | 149:57:09 |
Calls: | 13,691 |
Calls today: | 1 |
Files: | 186,936 |
D/L today: |
438 files (115M bytes) |
Messages: | 2,410,967 |