Commit Graph

2645 Commits

Author SHA1 Message Date
Stephen Chung
859a18c6fd Fix Dynamic hashing. 2021-06-06 14:47:32 +08:00
Stephen Chung
c02d702081 Use StaticVec. 2021-06-06 12:17:04 +08:00
Stephen Chung
a530fbf4ff Remove unnecessary raw stirngs. 2021-06-05 15:26:43 +08:00
Stephen Chung
3371eed411 Use write_str. 2021-06-04 14:23:40 +08:00
Stephen Chung
e35122ae5d Disallow registering indexers for integers. 2021-06-04 14:23:30 +08:00
Stephen Chung
99e06abd94 Fix test. 2021-06-02 15:18:09 +08:00
Stephen Chung
4cf6550fc6 Fix tests. 2021-06-02 15:05:33 +08:00
Stephen Chung
71684f5e2a Implement bit-fields. 2021-06-02 14:29:18 +08:00
Stephen Chung
25e99af07e Add Zulip. 2021-06-01 11:13:56 +08:00
Stephen Chung
76bd48d0a6 Code style refinements. 2021-05-29 18:33:29 +08:00
Stephen Chung
5f36f1a28c Remove PluginFunction::is_variadic. 2021-05-29 18:32:34 +08:00
Stephen Chung
b5ed841ee7 Bump version. 2021-05-27 13:39:48 +08:00
Stephen Chung
c6ee20094b Fix teset output. 2021-05-25 11:09:55 +08:00
Stephen Chung
dfea3ed22a Code style refactor. 2021-05-25 10:54:48 +08:00
Stephen Chung
58d6a88bc4 Use checked exp for decimal. 2021-05-24 12:12:29 +08:00
Stephen Chung
aa8dee6460 Change tabs to spaces. 2021-05-24 12:12:16 +08:00
Stephen Chung
98a232cb8c Prevent exp underflow. 2021-05-23 11:54:40 +08:00
Stephen Chung
d07d4d295d Fix tests. 2021-05-22 19:34:10 +08:00
Stephen Chung
cc3e2d79a5 Replace unwrap with expect. 2021-05-22 19:14:24 +08:00
Stephen Chung
1545b602a7 Streamline hashing function. 2021-05-19 20:26:11 +08:00
Stephen Chung
85a5aa14b3 Fix no_index build. 2021-05-18 22:03:34 +08:00
Stephen Chung
2ade56fd94 Fix no_index build. 2021-05-18 21:38:09 +08:00
Stephen Chung
dc9b4d7f4d Indexer as fallback to property. 2021-05-18 20:12:30 +08:00
Stephen Chung
e64dad4e9f Optimize scope. 2021-05-18 12:40:40 +08:00
Stephen Chung
70f09d1c84 Make tag i32 on 64-bit targets. 2021-05-18 12:24:23 +08:00
Stephen Chung
3116a39331 Minor code refactor. 2021-05-18 12:24:11 +08:00
Stephen Chung
d1fc362eec Handle constants propagation. 2021-05-16 21:21:13 +08:00
Stephen Chung
cce2e02428 Fix feature builds. 2021-05-15 11:56:19 +08:00
Stephen Chung
27420dd9b4 Merge branch 'master' of https://github.com/schungx/rhai 2021-05-15 11:43:24 +08:00
Stephen Chung
941e09d29d Guard against setters mutating constants, and allow pure setters. 2021-05-15 11:41:42 +08:00
Stephen Chung
565134c4da Fix bug in constants propagation. 2021-05-15 11:00:25 +08:00
Stephen Chung
60dc41bfac Allow pure setters by making constant Dynamic internally constant as well. 2021-05-15 09:45:40 +08:00
Stephen Chung
4f14fd55f5 Small code refinements. 2021-05-14 19:21:28 +08:00
Stephen Chung
202285f9ab Disallow pure setters. 2021-05-13 10:34:24 +08:00
Stephen Chung
9585de4ae4 Add Dynamic from shared. 2021-05-11 21:38:07 +08:00
Stephen Chung
be052b2b26 Bump version of rust_decimal and add more functions. 2021-05-11 20:31:31 +08:00
Stephen Chung
97c8194d17 No need to specify number of variables added/removed for custom syntax. 2021-05-11 10:58:28 +08:00
Stephen Chung
3a47ed7c46 Use rhaiscript/smartstring to patch no-std. 2021-05-10 11:22:47 +08:00
Stephen Chung
fd19d625b0 Refine doc comments. 2021-05-10 11:07:19 +08:00
Stephen Chung
2cf59e9954 Expose DynamicReadLock and DynamicWriteLoc under internals. 2021-05-10 09:43:45 +08:00
Stephen Chung
d230f448c0 Add no_smartstring to disable using SmartString. 2021-05-08 22:59:33 +08:00
Stephen Chung
2c0215ea3f Shrink arrays and use boxed slices. 2021-05-05 18:38:52 +08:00
Stephen Chung
13c620de4b Implement Eq and PartialEq for ScriptFnMetadata that sorts on function signature. 2021-05-04 10:19:08 +08:00
Stephen Chung
c61b118037 Fix decimal build. 2021-05-03 13:57:47 +08:00
Stephen Chung
c749bbb653 Reduce BTree sizes by boxing values. 2021-05-03 13:45:41 +08:00
Stephen Chung
aad842fe50 Remove Engine::enable_doc_comments. 2021-05-03 13:07:51 +08:00
Stephen Chung
bb5dc7b637 Add tag to Dynamic. 2021-05-02 23:57:35 +08:00
Stephen Chung
13d5092c4d Allow setters returning values when return_raw. 2021-05-02 23:51:37 +08:00
Stephen Chung
9fabca5937 Bump version. 2021-05-02 20:36:59 +08:00
Stephen Chung
b091113334 Eliminate unnecessary data structures. 2021-04-27 22:28:01 +08:00