08-30-2012, 11:46 PM
(08-29-2012, 10:43 AM)Kase link Wrote: While I was coding the Ammunation feature, I stumbled upon the following issue; in a class, I had a property which had to be used to count the instances of another class. Although it didn't work, so I had to use a hack. Let me explain; the code shows how it should have worked, but actually didn't:
Code:class Foo
{
const BarInstances = 30;
}
class Bar <barId (Foo::BarInstances)>
{
// ...
}
Would be cool to have it fixed!
The instances should be declared as:
Code:
class Foo {
public const BarInstances = 30;
};
class Bar <barId (Foo::BarInstances)> {
// ...
};That'll work just fine.
(08-30-2012, 01:47 PM)Kase link Wrote: It looks like some errors occour if you use sizeof(m_somePropertyHere). For example:
Fixed in LVP PreCompiler 4.3.
(08-30-2012, 01:47 PM)Kase link Wrote: Also, in the compiler output, you can't use CTRL+C to copy logs. Even though RMB -> Copy works, CTRL+C is way faster.
Fixed in the experimental LVP Pawn Editor binary.
