Skip to content

Commit 5286a9f

Browse files
committed
Updated Readme.
1 parent 0bdd773 commit 5286a9f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Reflection Template Library - Modern C++ Reflection Framework
22

3-
**Reflection Template Library (RTL)** brings rich runtime reflection to modern C++ — combining compile-time safety with runtime flexibility.
3+
**Reflection Template Library (RTL)** brings rich run-time reflection to modern C++ — combining compile-time safety with run-time flexibility.
44

55
🪞 What's “Reflection”?
66

77
Reflection lets you interact with code by `name` instead of by `type`. Imagine you’ve written a simple function,
88
```c++
9-
std::string GetAsString(int num);
9+
std::string complexToStr(float real, float img);
1010
```
1111
**RTL** lets you call it dynamically:
1212
```c++
13-
rtl::function<std::string(int)> toStr = cxx_mirror.getFunction("GetAsString") // cxx_mirror?? see quick preview!
14-
->argsT<int>()
15-
.returnT<std::string>();
16-
if(toStr) { // All's well?
17-
std::string result = toStr(69375); // Works!
13+
rtl::function<std::string(float, float)> cToStr = cxx_mirror.getFunction("complexToStr") // cxx_mirror?? see quick preview!
14+
->argsT<float, float>()
15+
.returnT<std::string>();
16+
if(cToStr) { // All's well?
17+
std::string result = cToStr(61, 35); // Works! (int → float? No problem.)
1818
}
1919
```
20-
**No includes. No compile-time linking. Just run-time lookup & type-safe invocation**.
20+
*No includes. No compile-time linking. No argument type-casting. No guess work. Just run-time lookup & type-safe invocation*.
2121

2222
⚡ Performance!
2323

@@ -29,7 +29,7 @@ RTL performs reflective invocations — for free functions, methods, constructor
2929

3030
💡 In One Line
3131

32-
***RTL is a lightweight, static library that enables a robust, type-safe runtime reflection system for C++ — as flexible as in managed languages, yet as close as possible to native performance.***
32+
***"RTL is a lightweight, static library that enables a robust, type-safe run-time reflection system for C++ — as flexible as in managed languages, yet as close as possible to native performance."***
3333

3434
[![CMake](https://img.shields.io/badge/CMake-Enabled-brightgreen)](https://cmake.org)&nbsp;[![C++20](https://img.shields.io/badge/C++-20-blue)](https://isocpp.org)&nbsp;[![RTL Build](https://github.com/ReflectCxx/ReflectionTemplateLibrary-CPP/actions/workflows/build.yml/badge.svg?branch=release)](https://github.com/ReflectCxx/ReflectionTemplateLibrary-CPP/actions/workflows/build.yml?query=branch%3Arelease)&nbsp;[![License: MIT](https://img.shields.io/badge/License-MIT-green)](LICENSE)
3535

@@ -72,7 +72,7 @@ auto cxx_mirror = rtl::CxxMirror({
7272
});
7373
```
7474

75-
With just this much, you’ve registered your types and unlocked full runtime reflection. The `cxx_mirror` object is your gateway to query, introspect, and instantiate types at runtime — all without compile-time knowledge of those types, without strict static coupling.
75+
With just this much, you’ve registered your types and unlocked full run-time reflection. The `cxx_mirror` object is your gateway to query, introspect, and instantiate types at run-time — all without compile-time knowledge of those types, without strict static coupling.
7676

7777
**Without reflection:**
7878

@@ -128,7 +128,7 @@ RTL lets you create reflected objects on the `Heap` or `Stack` with automatic li
128128

129129
* Return values — All returns are propagated back wrapped in `rtl::RObject`, cleaned up automatically at scope exit.
130130

131-
RTL doesn’t invent a new paradigm — it extends C++ itself. You create objects, call methods, and work with types as usual, but now safely at runtime.
131+
RTL doesn’t invent a new paradigm — it extends C++ itself. You create objects, call methods, and work with types as usual, but now safely at run-time.
132132

133133
## Reflection Features
134134

0 commit comments

Comments
 (0)