Search found 176 matches
- Sat Mar 19, 2022 1:15 pm
- Forum: Common questions
- Topic: ASH and LONGINT
- Replies: 5
- Views: 13850
Re: ASH and LONGINT
The Platform Specific Issues document says "The Component Pascal Language Report does not specify the out-of-range behaviour of the built in arithmetic and set functions, but deliberately allows the compiler writer freedom to make implementation decisions." and "Note carefully that us...
- Wed Mar 16, 2022 5:15 pm
- Forum: Common questions
- Topic: ASH and LONGINT
- Replies: 5
- Views: 13850
Re: ASH and LONGINT
luowy
Can you explain - What is the precise problem that your fixup solves?
My problem is I don't understand how, or why, the code "m := 70; x := 1.0 * ASH (1L, m)" gives the mathematical answer 2^70 which is more than the expression "ASH (1L,m)" can ever give.
Can you explain - What is the precise problem that your fixup solves?
My problem is I don't understand how, or why, the code "m := 70; x := 1.0 * ASH (1L, m)" gives the mathematical answer 2^70 which is more than the expression "ASH (1L,m)" can ever give.
- Tue Mar 15, 2022 12:04 pm
- Forum: Common questions
- Topic: ASH and LONGINT
- Replies: 5
- Views: 13850
ASH and LONGINT
If m is INTEGER and x is REAL the code m := 70; x := ASH (1L, m) crashes, which is not unexpected. But the code m := 70; x := 1.0 * ASH (1L, m) gives the "correct" answer 1180591620717411303424 (or, apparently as printed 1180591620717411300000). What is going on? Is the compiler expanding ...
- Sun Feb 20, 2022 12:22 pm
- Forum: Component Pascal
- Topic: Sets with more than 32 elements?
- Replies: 7
- Views: 16422
Re: Sets with more than 32 elements?
On the website Component Pascal Collection (http://zinnamturm.eu/downloadsIN.htm#Lib) there is a sub-system called Lib. It contains a module "LibSets" which contains a type "BiSet" which is essentially a 64-bit set. The module also contains procedures for things like creating ran...
- Sun Feb 20, 2022 11:50 am
- Forum: Forum administration
- Topic: BlackBox Framework Center - membership - To Robert
- Replies: 3
- Views: 34362
Re: BlackBox Framework Center - membership - To Robert
Thanks Ivan for resolving this issue.
- Tue May 04, 2021 10:07 am
- Forum: BlackBox Framework
- Topic: Current directory and Dialog.RunExternal
- Replies: 8
- Views: 17879
Re: Current directory and Dialog.RunExternal
However, i think that'd be a workaround; a better thing to do, rather, is to make Dialog.RunExternal follow the BB convention and start the passed command in the actual BB working directory.? I am not an expert, so please forgive me if I'm talking nonsense - I'm trying to understand this for myself...
- Tue May 04, 2021 9:34 am
- Forum: BlackBox Framework
- Topic: Current directory and Dialog.RunExternal
- Replies: 8
- Views: 17879
Re: Current directory and Dialog.RunExternal
This is a quote from "System User Maual" section "Server installation": 3) For each workstation, create a shortcut with the following contents: Command Line (Target): <BlackBoxDir>\BlackBox.exe /Use <WorkDir> Working Directory (Start in): <WorkDir> where <BlackBoxDir> stands for ...
- Sat May 01, 2021 9:26 am
- Forum: BlackBox Framework
- Topic: Current directory and Dialog.RunExternal
- Replies: 8
- Views: 17879
Re: Current directory and Dialog.RunExternal
... it seems there's no one to second my suggestion of a more elegant and platform-independent solution? Actually I would like an elegant solution, but I am so confused by the entire subject I can't tell what is elegant! I have a language problem: I think I have heard the terms: Home path, Start in...
- Sat May 01, 2021 9:18 am
- Forum: BlackBox Framework
- Topic: Current directory and Dialog.RunExternal
- Replies: 8
- Views: 17879
Re: Current directory and Dialog.RunExternal
By coincidence I wanted to ask a question on this subject today, and then found this thread. I haven't thought about this subject for years, and have forgotten everything I might have known! But I did write the following two routines that might be relevant: PROCEDURE HomePath* (OUT home : ARRAY OF C...
- Sat Jan 23, 2021 9:51 am
- Forum: Component Pascal
- Topic: Assigning values to pointers or passing pointers to VAR args
- Replies: 12
- Views: 24302
Re: Assigning values to pointers or passing pointers to VAR
Rochus I can well believe that the Platform-Specific Issues document is incomplete or unclear in this regard (specifically assignment rules with untagged variables). If you are in a position to draft a new or improved section for the document I will ask the Center to consider updating the document a...