~kaathewise


#847 const does not work 1 year, 21 days ago

Comment by ~kaathewise on ~sircmpwn/hare

Discovered by listentolist.

#847 const does not work 1 year, 21 days ago

Ticket created by ~kaathewise on ~sircmpwn/hare

The const keyword doesn't work as it should. The following code prints 0, then 1:

use fmt;

export fn main() void = {
	const x = 0;
	fmt::println(x)!;
	x = 1;
	fmt::println(x)!;
};

#791 strings::tokenize documentation example is incorrect 1 year, 4 months ago

Ticket created by ~kaathewise on ~sircmpwn/hare

The example uses strings::next_token(tok), which does not work, because next_token uses a pointer to the tokeniser, not the tokeniser itself.