cppfront
cppfront copied to clipboard
[BUG] Add support for defining pointer to pointers.
trafficstars
Hi, I am very interested in this project's future!
Cppfront fails to compile this code
main: () -> int = {
a: int = 2;
pa: *int = a&;
ppa: **int = pa&;
return a*pa**ppa**; // 8
}
As of now, ppa: **int = pa&; does not work.
That is true. As a workaround you can use type aliases.
@leejy12 Thanks, fixed with commit e1b57cf026041cef33d4f95ae230513ada29fa51 .
This now works (note spacing around *, otherwise it's your example):
main: () -> int = {
a: int = 2;
pa: *int = a&;
ppa: **int = pa&;
std::cout << a * pa* * ppa**; // 8
}
Thanks!