(0)| 2/8/2024 9:35 PM | |||
|
Joined: 12/11/2018 Last visit: 10/30/2025 Posts: 9 Rating:
|
Dear Experts, I have experimented with variant and read some docs which lead me to this page. On that page there is a table where the last row contains this:
I thought this could be a /dev/zero like thing that unix like systems have been using for long years. However I wont be able to get it work neither on an S71200 nor an S71500 CPU. Does anyone have an idea how it should be used? Thank you in advance, aTom |
||
| 2/8/2024 10:06 PM | |||
|
Joined: 7/7/2010 Last visit: 1/16/2026 Posts: 16379 Rating:
|
If you want to pass _any_ pointer (variant) to a block (with non-optimized access), you need to know what a 0 pointer looks like (so you can test your code). In the event a block needs to be called, and the variant in/out tag is not needed, you can pass a zero pointer - rather than making the tag optional which can be tricky.
|
||
|
science guy |
|||
| 2/9/2024 3:58 AM | |||
|
Joined: 3/30/2020 Last visit: 1/19/2026 Posts: 5660 Rating:
|
A screen grab of how the implementation looks like, would be most welcome. |
||
|
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|||
| 2/9/2024 8:12 AM | |||
|
Joined: 9/23/2005 Last visit: 1/19/2026 Posts: 5155 Rating:
|
If you expect something behaving like unix-like /dev/zero then no luck. Nothing like this exists on the system. Variant is some kind of reference. What is described in the mentioned manual is a null reference (actually it is a null pointer). You can / should use the NULL constant. Or while checking - IS_NULL(variant)/NOT_NULL(variant). |
||
|
Regards, |
|||
This contribution was helpful to
|
|||
Follow us on