• Advertisement
Sign in to follow this  

shared keyword

This topic is 1999 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Hi!

code is very simple

[source lang="cpp"]
shared class Foo
{
void MethodInFoo(int b) { bar = b; }
int bar;
};

shared class TestClass
{
float dt;
GUILabel @item;
};

void Caller(float dt)
{
TestClass test;
test.dt = dt;
@test.item = @Label;
}[/source] Edited by _Engine_

Share this post


Link to post
Share on other sites
Where is Label defined (in the last function)? I don't see anything immediately wrong with your code.

Share this post


Link to post
Share on other sites
What version of AngelScript are you using?

The only reason I can think of that can cause this problem is if you're using an older version that doesn't have support for the shared classes. The shared feature was introduced in version 2.22.0.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement