eegee
Member
KoLmafia r11734
Please take a look at the following ASH code:
Since foo.bar = 1; was not compiling, I inspected the source code. This is happening because net.sourceforge.kolmafia.textui.parsetree.TypeList, line 60 is using equalsIgnoreCase to find an existing type.
This seems somewhat inconsistent because print(foo.bar); works.
Please take a look at the following ASH code:
PHP:
record Foo {
int bar;
};
Foo[1] foos;
foreach i, x in foos {
x.bar = 1; // does compile
}
foreach i, foo in foos {
foo.bar = 1; // does not compile
print(foo.bar); // but this does compile
}
This seems somewhat inconsistent because print(foo.bar); works.
Last edited: