#labelpointers — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #labelpointers, aggregated by home.social.
-
i have added a new example to the #XLS examples directory. this example demonstrates an implementation of GOSUB using anonymous label pointers.
note well: GOSUB and RETURN would normally be macros, but the XLS preprocessor does not yet support macros, so i have manually preprocessed them.
on this note, i recommend viewing the Bisqwit video about GOSUB, which i have linked below.
https://github.com/TheDarkBomber/XLS/tree/master/examples/gosub
-
added two new features to #XLS today, one common one, the other one not being so common.
the common one is just return. well, early return, as all functions return their last expression by default. nothing too interesting there.
the less common one is label pointers. these are like function pointers, but point to a label instead. it's hard to explain what they're useful for, but they do have their use cases.
mastodon hashtags: #ProgrammingLanguage #LLVM #LabelPointers