Page 1 of 1

Pointer Errors

Posted: Thu Jan 30, 2025 2:35 pm
by blueb
Some users have been displaying code like this

Code: Select all

;==================== 
;  PB 6.20 Beta 3 (x64)
GetCount(*cProps.l)
;==================
I'm also using the latest beta, but I keep getting error messages saying: "Native types can't be used with pointers"

While I completely understand, I fail see why some users can use native types with pointers, and some cannot.

Is there a switch somewhere that escapes me?

Re: Pointer Errors

Posted: Thu Jan 30, 2025 2:52 pm
by mk-soft
This is old code and the native types must be removed. The code then works as before.
It also makes no sense to specify these, as it is a pointer.

Re: Pointer Errors

Posted: Thu Jan 30, 2025 3:01 pm
by miso
Some users have been displaying code like this
Older PB versions allowed this, so you might find these things in legacy code.

Re: Pointer Errors

Posted: Thu Jan 30, 2025 4:13 pm
by blueb
mk-soft wrote: Thu Jan 30, 2025 2:52 pm This is old code and the native types must be removed. The code then works as before.
It also makes no sense to specify these, as it is a pointer.
I agree 100%.. it's just that the last 3 or 4 times I've downloaded 'sample' code, it contains these older pointers, but the poster has indicated that they are on PB 6.20 betas, and I can't figure out why they don't seem to get these error messages.

Thanks for confirming what I thought.

Re: Pointer Errors

Posted: Thu Jan 30, 2025 5:31 pm
by Fred
It's a new check from 6.20 beta 4 as it was missing.

Re: Pointer Errors

Posted: Fri Jan 31, 2025 1:37 pm
by PBJim
Fred wrote: Thu Jan 30, 2025 5:31 pm It's a new check from 6.20 beta 4 as it was missing.
This check has been included in PB since I started working with it. I'm still on PB 6.00 Windows.

Image

Re: Pointer Errors

Posted: Fri Jan 31, 2025 2:08 pm
by Fred
Yes, it's been added for interface as well in 6.20b4.