Hello There, Guest! Login or Register


[PreCompiler] Known bugs
#3
(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.
Reply


Messages In This Thread
[PreCompiler] Known bugs - by Kase - 08-29-2012, 10:43 AM
Re: [PreCompiler] Known bugs - by Kase - 08-30-2012, 01:47 PM
Re: [PreCompiler] Known bugs - by Russell - 08-30-2012, 11:46 PM
Re: [PreCompiler] Known bugs - by Kase - 08-31-2012, 12:26 AM
Re: [PreCompiler] Known bugs - by Kase - 09-03-2012, 01:21 PM
Re: [PreCompiler] Known bugs - by Russell - 09-03-2012, 11:51 PM