Comments (4)
Hey @travisstaloch!
i see output
alles gut
Yeah, this is my fault, I should have made more apparent the issue that my minimum repo is trying to demonstrate -- it's an issue that only crops up during debugging. As mentioned above, the issue is that the debugger (after the predicate evaluates false resulting in a requisite skip of the while
block) shows that execution has jumped to the last line inside the while
block, instead of the first line after/outside of the while
block.
from zig.
when i run this w/ 0.12.0-dev.1871+e426ae43a, i see output alles gut
. so i think this means it has been fixed. i wish i could point to an issue or pull request where it changed but i can't think of anything at the moment.
from zig.
Steps to reproduce:
zig build
- Set a break point on the first line of
Weird.next()
- In VS Code, run the launch job
Zibug Tests
- Step through, until the
while
loop should be seemingly skipped - Observe that the instruction jumps briefly to the end (inside) of the
while
block (it seems to be an off by one alignment thing), although note that nothing happens. - Press step over again -- note that we've made it to the place we expected to get to -- outside the
while
block (which will ultimately result in analles gut
)
from zig.
Closing this issue, as I've done a poor job of explaining it, and will reopen the issue in kind.
from zig.
Related Issues (20)
- make doctests support function call expressions and field access expressions HOT 1
- change std.io.BufferedReader and std.io.BufferedWriter to accept the buffer as a runtime parameter, and use AnyReader / AnyWriter
- Make trailing whitespace at the end of multiline strings an error HOT 1
- Failed to build on ObjCopyStep using cwd_relative
- rsqrt as builtin HOT 6
- Should build.zig have a programmatic interface and support the use case of acting as the low level build system of another programming language. If yes, how?
- Undefined usage before assignment not detected if variable is mutable and assignment is deferred HOT 1
- translate-c generates incorrect alignments for struct fields
- Store Build relative information in LazyPath HOT 3
- Printing functions incorrectly round float values with precision 0 HOT 1
- `comptime` not required for param with comptime-only type in function called at runtime HOT 2
- Proposal: Substitute Char Literals With `utf8Decode` HOT 4
- mem.Allocator struct field gets corrupted by presence of neighbouring time.Instant field in debug builds HOT 2
- introduce pointer stability safety locks to array lists HOT 1
- introduce pointer stability safety locks to MultiArrayList
- add stack traces to pointer stability safety locks
- x86 FPATAN instruction
- llvm error using `@reduce` with optimized float mode
- Segfault when using curly braces instead of parenthesis in function call HOT 5
- [Regression] Opening absolute paths no longer works with WASI HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zig.