Property Scope

Hi everyone,

Is it possible in code to change the scope of a property or method of a module, so for testing purposes in a Debug build I’d like the property to be global but when the app is built I’d like it to remain private.

Strange thing to want I suppose…

Kind Regards

Trig

Yes, look into IDE Scripting and Build Steps.

1 Like

Thanks Tim,

I’ll do some digging.

Regards

Trig

Curious about purpose or intent behind this.

Hi Kem,

In my ALE development environment I’d like to add a compiled code viewer, but understandably the codeStack is private to the engine. I’d only want the code viewer to work in a debug build so for a real build the codeStack should be private.

Regards

Trig

Add a “hidden” attribute to the public property so it does now show up anywhere in ide, but compiles.

2 Likes

Hi Graham,

OKAY, that is way cool, I didn’t know about that and it completely solved my issue.

Many thanks

Trig

1 Like