Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 03:32:42 +0000



Post From: C++, ACSIL functions question

[2023-03-12 17:38:15]
BenjFlame - Posts: 324
Thanks all. It's clear now.
First, function in function is not allowed in C++. Period.

And you gave solutions to get the desired result.

There is also the c++ lambda. I can have it inside of another function, and it has access to all its variables:


auto lambda = [&]() { // Reference link to all variables
};

lambda();

It compiles, but I haven't tried it in a live environment yet.
Is there any reason why I should not use a lambda such as this one in SierraChart study context? In terms of memory usage and such?
Date Time Of Last Edit: 2023-03-12 17:47:06