Berechnungen von der Lauf- in die Compile-Zeit zu verschieben ist jetzt möglich.
To move computations from run to compile time is now possible.
Makros können keine echten Variablen verwenden, da wir wollen, dass dieser Stapel nur zur Compile-Zeit vorhanden ist.
Macros can't use real variables, because we want this stack to exist only at compile time.
Bietet Zugriff auf die Anzahl der Elemente in einem Tupel als Compile-Zeit konstanter Ausdruck.
Provides access to the number of elements in a tuple as a compile-time constant expression.
Clara verfolgt einen hybriden Ansatz, der Typestate Properties durch eine Kombination von Compile-Zeit und Laufzeit-Techniken verifiziert: Zunächst versucht eine statische Analyse zu beweisen, dass das zu testende Programm die Typestate Eigenschaft auf keinem Ausführungspfad verletzen kann.
Clara allows for a hybrid approach that allows for verifying typestate properties of Java programs through a combination of compile-time and runtime techniques: A static analysis first try to prove that the program under test cannot possibly violate the stated properties on any execution.
Sie ist interessant, weil sie relativ einfach ist und Sie sie vielleicht bereits aus der Schule kennen, aber um sie statisch zur Compile-Zeit zu implementieren, muss man bereits einen rekursiven Makroansatz verwenden.
It's interesting because it's simple enough, you might be already familiar with it from school, and yet to implement it statically at compile time, you already need to use a recursive macros approach.
Diese würde ich tendenziell zur Compile-Zeit als statisches Asset (also beispielsweise auch als HTML-Schnipsel) integrieren und lieber darauf achten, schnell und oft deployen zu können.
I would tend to integrate these at compile time as static assets and would focus on being able to deploy quickly and often.
[Bearbeiten] Compile-Zeit rationale Arithmetik (seit C++11)
[edit] Compile time rational arithmetic (since C++11)
Eine Konstante wird zur Compile-Zeit definiert
Defining a constant at compile time
Die Uhrzeit wird, falls vorhanden, von der RTC-Zeit übernommen, ansonsten wird die Compile-Zeit genutzt.
If available, the time is taken from the RTC time, otherwise the compile time is used.
Wenn wir nun allerdings einen Klasse, einen Call, in einem anderen Plugin zur Compile-Zeit nutzen wollen, dann muss diese Klasse exportiert sein.
If you want to use a class, a Call, in other plugins at compile time, you have to export the type.
Schreiben wir also ein Makro, das RPN zur Compile-Zeit auswertet, indem es sie in eine Infixnotation konvertiert, die Rust versteht.
So let's write a macro that would evaluate RPN at compile-time by converting it into an infix notation that Rust understands.
RTC-Clock wird immer gesetzt, wenn die Compile-Zeit neuer als die RTC-Zeit ist
RTC clock will always be set when the compile time is newer than the RTC time
"Debug build" ist ein Parameter, der zur Compile-Zeit gesetzt wird, also musst Du entweder FreeCAD selbst kompilieren oder Dir eine vorkompilierte "debug"-Version besorgen.
"Debug build" is a parameter that is set at compile time, so you'll either need to compile FreeCAD yourself, or obtain a pre-compiled "debug" version.