Why aren’t variable names surrounded by exclamation marks outputting values even after enabling delayed expansion?

I wrote this code: setlocal EnableDelayedExpansion set “var1=level” set “var2=stats” echo !var1%var2%! and when I execute it, it outputs this: !var1stats! Even with Delayed Expansion enabled, exclamation marks won’t work in substitution of parenthesis. I want it to output this: levelstats I don’t understand my error.

Details

Given a .NET assembly how can we check programmatically if it embeds a portable PDB?

So, I thought I nailed it with the following code: using (var peReader = new PEReader(stream = File.OpenRead(args[0]))) { bool found = peReader .ReadDebugDirectory() .Any(e => e.Type == DebugDirectoryEntryType.EmbeddedPortablePdb); stdout.WriteLine(found); } Nope. I created a new .Net Core project with Portable PDB. The ReadDebugDirectory method returns two entries of types: CodeView Reproducible So, the check…

Details

Unlock of unowned mutex

I created the following class which provides an acquire_lock() and release_lock() function class LockableObject { public: void acquire_lock() { std::unique_lock<std::mutex> local_lock(m_mutex); m_lock = std::move(local_lock); } void release_lock() { m_lock.unlock(); } private: std::mutex m_mutex; std::unique_lock<std::mutex> m_lock; }; This class provides an acquire_lock and release_lock function. I have multiple threads accessing the same object and calling the…

Details