Search found 26 matches
- Thu Apr 19, 2018 5:52 pm
- Forum: Bug
- Topic: Refinement of DevCPP.GetCode
- Replies: 18
- Views: 28170
Re: Refinement of DevCPP.GetCode
And even it's not all. Because it is still possible to write this, and it will be accepted by GetCode: PROCEDURE {code} Proc , 1 ; To correct this situation, I propose to add another check before entering the processing cycle: PROCEDURE GetCode; ... BEGIN n := 0; NEW(s, 64); IF sym = comma THEN err(...
- Thu Apr 19, 2018 3:53 pm
- Forum: Bug
- Topic: Refinement of DevCPP.GetCode
- Replies: 18
- Views: 28170
Refinement of DevCPP.GetCode
I suggest this refinement of DevCPP.GetCode. This will make the check of syntax more correct. I used {code} here because [ code ] is a forum tag. MODULE PrivTestCodeProc; IMPORT SYSTEM; PROCEDURE {code} Proc1 ,,,,,,,, "", "", "", 9, "", "",,,,,,,, ; ...
- Mon Aug 22, 2016 2:03 pm
- Forum: System
- Topic: Implementation of SYSTEM.VAL()
- Replies: 17
- Views: 38731
Re: Implementation of SYSTEM.VAL()
Therefore, I propose to produce warning, and not error. In the case of ignoring this warning, a programmer knows exactly what goes.
Is there a possibility to show a warning in BlackBox?
Is there a possibility to show a warning in BlackBox?
- Sat Aug 20, 2016 10:00 am
- Forum: System
- Topic: Implementation of SYSTEM.VAL()
- Replies: 17
- Views: 38731
Re: Implementation of SYSTEM.VAL()
Dear all, We are mentioned a specific feature that may remain unknown to many users. For SYSTEM.VAL(TYPE, 'value') David proposes to produce a warning when SIZE(TYPE) > SIZE(type of 'value'). Since SYSTEM.VAL works with a value in memory, it may make sense to protect your applications from failure, ...
- Sun Aug 14, 2016 11:05 pm
- Forum: System
- Topic: Implementation of SYSTEM.VAL()
- Replies: 17
- Views: 38731
Implementation of SYSTEM.VAL()
FYI I just tested my example in black box component builder: MODULE test; IMPORT StdLog, SYSTEM; PROCEDURE Do*; VAR i,j: INTEGER; l: LONGINT; BEGIN i := 1; j := -1; l := SYSTEM.VAL(LONGINT,i); StdLog.Int(l); StdLog.Ln END Do; END test. test.Do And it logs the value '27839728904568833'. Arghh! Is an...
- Fri Aug 05, 2016 7:52 pm
- Forum: Bug
- Topic: Strange output of BlackBox compiler
- Replies: 2
- Views: 11295
Strange output of BlackBox compiler
I want to write you about the particular feature of BlackBox, that I encountered. Wening Luo (luowy, maliya) is quite sure that it is a bug, he even offered the fix: https://translate.google.com/translate?sl=auto&tl=en&js=y&prev=_t&hl=ru&ie=UTF-8&u=http%3A%2F%2Fforum.oberonco...