Closed tastyminerals closed 4 years ago
Thanks for the report. Yes, far as I can tell it you are using it correctly. When I compile your main I do not see this bug. (I'm calling dmd and ldc directly.)
Looking at the phobos library, this looks like a difference between rawRead
on Unix/MacOs vs Windows. (tsv-utils
are tested on Unix and MacOS, but not Windows.) On Windows there is a call to an @system
function. On Unix and other non-Windows platforms rawRead
calls trustedFread
, which has been marked @trusted
, so it can be called from @safe
code.
I should probably remove the @safe
attribute on the popFront
call. I'll do that as part of the next point release. It'll be a few days before I can make this change though. If you want to try making the change locally, the place to make it is here
Hopefully PR #283 addresses this case. dub
won't pick up the new version until I tag a new version, and I might not get to for a few days. (There's some additional work on my part.)
@tastyminerals - A new release (v1.6.1
) with the change has been tagged and is available via dub
. Hopefully this enables compilation.
I'm closing this for now. When you get a chance I'm hoping you can test in your environment and report if it worked or not. If it didn't work, reopen this issue or a new issue as appropriate.
Thanks again for the report.
This is the first time I am using tsv-utils. I am trying to compile the following chunk of code:
and get the following exception:
Am I using it correctly?