UFC creating name conflict
Chris Piker
chris at hoopjump.com
Sat Oct 9 21:26:52 UTC 2021
Hi D
I have and old C structure that I have to wrap that has a member
named '.seconds', and in the module that handles this I also have
conversion functions to go from an internal time representation
to struct SysTime values.
Unfortunately importing `core.time` brings in a seconds function,
which due to UFC is confused with a structure member of the same
name.
How can I explicitly tell the compiler that I'm referring to:
```d
thing.seconds # The structure member
```
and not
```
seconds(thing) # the function
```
?
Currently my code fails to compile due do this ambiguity.
Thanks for any advice you can give. My google searches with the
qualifier `site:dlang.org` weren't turning up any hits.
More information about the Digitalmars-d-learn
mailing list