Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB64-PE v4.3.0 is available
#21
I could do something like the following in 4.1

Code: (Select All)
DIM A(100) AS INTEGER
DIM B(100) AS INTEGER
DIM m AS _MEM
RANDOMIZE TIMER
FOR x% = 0 TO 100
    A(x%) = INT(RND * 255)
    B(x%) = INT(RND * 255)
NEXT x%
INPUT Ch%
m=_iif(ch%=1,_mem(a()),_mem(b()))

In 4.3 the last line errors out. Is this by design, or is it a bug?
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
Reply
#22
I'll have to give this a try, especially since pipecom has been included as a library. Very cool of you guys.
The noticing will continue
Reply
#23
(12-29-2025, 06:16 PM)OldMoses Wrote: I could do something like the following in 4.1

Code: (Select All)
DIM A(100) AS INTEGER
DIM B(100) AS INTEGER
DIM m AS _MEM
RANDOMIZE TIMER
FOR x% = 0 TO 100
    A(x%) = INT(RND * 255)
    B(x%) = INT(RND * 255)
NEXT x%
INPUT Ch%
m=_iif(ch%=1,_mem(a()),_mem(b()))

In 4.3 the last line errors out. Is this by design, or is it a bug?

Seems this bug was already introduced in 4.2.0, if I had to make a guess it's due to the added ARM support in 4.2.0 which required tweaking of variable type handling. Probably the _IIF function which derives its result type from the given inputs was forgotten. I think @a740g should know the made changes and can probably sort it out.
Reply
#24
(12-29-2025, 10:20 PM)RhoSigma Wrote: Seems this bug was already introduced in 4.2.0, if I had to make a guess it's due to the added ARM support in 4.2.0 which required tweaking of variable type handling. Probably the _IIF function which derives its result type from the given inputs was forgotten. I think @a740g should know the made changes and can probably sort it out.
I skipped from 4.1 to 4.3 and when it happened I commented out the _IIF function and converted to an IF...THEN : END IF block and that worked fine, if a little more verbose.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
Reply
#25
I've made a small Year's end update release of the QB64-PE Libraries Pack add-on.

Wish a Happy New Year to everybody...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)