For completeness, proof that the code also works:
BracketTest.b
001 PROGRAM BracketTest
002 *
003 a = ""
004 a<3> = "123"
005 *
006 CRT INT(a<INT(3)>[2,1])
007 END
jsh Codetest ~ -->BASIC PGM BracketTest.b
BracketTest.b
BASIC_2.c
Source file BracketTest.b compiled successfully
jsh Codetest ~ -->CATALOG PGM BracketTest.b
BracketTest
Object BracketTest cataloged successfully
jsh Codetest ~ -->BracketTest
2
jsh Codetest ~ -->
Mike
From: [email protected] [mailto:[email protected]] On Behalf Of
Mvreply
Sent: 19 October 2017 20:22
To: [email protected]
Subject: RE: Looking at moving to jBase from D3, have a couple of questions
Ian,
1. jBASE now has a “d3” emulation which supports case-insensitivity
2. Your sample line of code compiles fine on the current version of jBASE ->
5.6.3 running with “d3” emulation.
Mike
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Ian Harper
Sent: 19 October 2017 17:48
To: jBASE <[email protected]<mailto:[email protected]>>
Subject: Looking at moving to jBase from D3, have a couple of questions
First, is there any way to allow lowercase keywords? I saw an old thread that
said no but it's been 10 years since that thread was started so I'm wondering
if there's been any movement on that. Could all the keywords be redefined as
user functions in lowercase?
Second, I ran into some strange errors while converting some of our code. It
seems like using the INT function inside of a angle brackets for attribute
notation will cause the brackets to be converted into LT and GT logical
comparison operators. For example the line:
`CRT INT(a<INT(3)>[2,1])`
Will give the following error:
`"ibh", 6 (offset 25) near "[":
CRT INT(a LT INT(3) GT [2,1])
^
syntax error
I swapped out the INT function with several others and the code compiled just
fine. Any insight as to why this is happening?
--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
To post, send email to [email protected]<mailto:[email protected]>
To unsubscribe, send email to
[email protected]<mailto:[email protected]>
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
---
You received this message because you are subscribed to the Google Groups
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
To post, send email to [email protected]<mailto:[email protected]>
To unsubscribe, send email to
[email protected]<mailto:[email protected]>
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
---
You received this message because you are subscribed to the Google Groups
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
---
You received this message because you are subscribed to the Google Groups
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.