Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Nested structures

fot1fot1 Member Posts: 66
edited December 2018 in Builders - Scripting
The following code gives an access violation when trying to compile:
struct Bar {
    string baz;
};

struct Foo {
   struct Bar bar;
};

void main()
{
    struct Foo foo;
    PrintString(foo.bar.baz);
}
I wonder if nested structures are allowed on this scripting language? Or is this a bug on wine only?

Comments

Sign In or Register to comment.