Replies: 3 comments
-
|
Realized a draft for enriching the registry by "Builders". Similar to factories, these allow to create objects: https://github.com/UG4/JSONToolkit/blob/main/test/test-builders.lua Realized in branch: feature-json-schema. Option 1: Construct C++ Object (with JSON defaults) Option 2: LUA table => JSON object => C++ Object Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
-
|
For the builders, we require defining certain type_traits: Trait for obtaining a defaults: Trait for obtaining a schema: Trait for constructing objects from JSON. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can we replace exisiting LUA code (e.g. from *_util.lua) efficiently?
Packages:
Goal:
Want to mimick classic LUA setup:
Beta Was this translation helpful? Give feedback.
All reactions