-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
std::comptime: initialize value support for reflection
- Loading branch information
1 parent
b88e937
commit ecfa05b
Showing
5 changed files
with
94 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2024 The Jule Programming Language. | ||
// Use of this source code is governed by a BSD 3-Clause | ||
// license that can be found in the LICENSE file. | ||
|
||
// Returns compile-time value information. | ||
// Cannot assign to memory, just available in compile-time. | ||
// The expression is evaluated to determine and handle value in compile-time and | ||
// will not executed at runtime. | ||
// fn ValueOf(EXPRESSION): comptimeValue | ||
|
||
/* >>> Hint comptimeValue implementation. | ||
|
||
// Private compile-time vaue information wrapper. | ||
// Only supports classic expressions. | ||
struct comptimeValue {} | ||
|
||
impl comptimeValue { | ||
// Returns type information for value. | ||
fn Type(self): comptimeTypeInfo | ||
} | ||
|
||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters