Follow

TIL that in GCC I can have a program goto a variable, and I think I would have preferred remaining innocent. :-)

@jpmens It has it's use cases, for example if you implement an bytecode interpreter (or a Forth system, GNU/Forth (gforth) makes use of it)

@cstrotm I see several use cases myself (jump tables, for example), but it’s non-standard anyway so I would typically ignore it.

@jpmens please stop, someone will actually try to use this lol

@jpmens huh. This makes my brain itch in ways I really don't like

@jpmens this has actually useful applications: jump tables. for e.g. bytecode interpreters where you jump to the instruction you want to execute based on an array index.
Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!