Commit Graph

1166 Commits

Author SHA1 Message Date
efb7be5bc4 Fix up examples to no longer use '&' 2024-10-27 20:49:03 -04:00
33f1af8e71 Fixes for places that used Text$find() 2024-10-27 20:45:10 -04:00
63a5032ca0 Disallow mutation of read-only views 2024-10-27 20:35:30 -04:00
052316261a Finish deprecating stack refs with & 2024-10-27 20:35:30 -04:00
41c0ea851a Deprecate "&" for stack references 2024-10-27 20:35:12 -04:00
df258c1773 Remove an unnecessary ARRAY_COPY() 2024-10-27 19:39:34 -04:00
71d6787541 Bugfix: for array:find() and array:sorted() and array:binary_search(),
do an ARRAY_COPY() if a user closure is being passed in, because the
closure could mutate the array and the semantics of those functions
should be to return information based on a snapshot
2024-10-27 19:33:28 -04:00
0d615443dc Update DateTime API to have separate methods for getting each component
instead of get(...)
2024-10-27 18:41:00 -04:00
f4d22958f7 Add an include 2024-10-27 12:58:37 -04:00
213ae74e32 Minor imports cleanup 2024-10-25 14:13:24 -04:00
29d1d74d7a Move unistr header out of tomo header 2024-10-25 14:05:07 -04:00
67702b2d77 Fix issue with non-ID chars in filenames 2024-10-10 01:09:17 -04:00
a2490f4a50 Clean up codegen for when statements 2024-10-09 21:01:43 -04:00
b85f76f6c0 Update readme 2024-10-09 14:49:00 -04:00
33d3e22023 Update example 2024-10-09 13:50:02 -04:00
5a80ff0db3 Update docs to standardize function signature formatting 2024-10-09 13:48:45 -04:00
63d48e9feb Update docs 2024-10-09 13:28:19 -04:00
074cf22ad4 Change function syntax from func(args)->ret to func(args -> ret) 2024-10-09 13:26:28 -04:00
47fca94606 Bugfix for 1e-2-3 2024-10-09 04:17:34 -04:00
a25699282d Tidy up some function annotations to use func(x,y:Foo) syntax instead of
func(x:Foo,y:Foo)
2024-10-09 02:22:32 -04:00
9dcc7ee7a9 Get rid of fn:func(Int,Num) syntax (unnamed arguments) 2024-10-09 01:56:33 -04:00
a3dab7e726 Add a test for mutating closed-over variables in a defer statement 2024-10-09 00:47:42 -04:00
7c853f83c9 Fix closure handling behavior for defer so that it can mutate
closed-over variables.
2024-10-09 00:45:52 -04:00
fcbdf18315 Bugfix for defer using enclosing scope 2024-10-09 00:36:00 -04:00
7e7ac77021 Document reductions 2024-10-08 23:39:37 -04:00
d741763293 Disallow reductions over tables (use .keys or .values instead) 2024-10-08 23:28:20 -04:00
37192d7206 Support reductions over sets 2024-10-08 23:26:49 -04:00
fc0ad68b50 Bugfix for reductions over conditional comprehensions that have no values. 2024-10-08 21:46:09 -04:00
6ae27d409a Better message 2024-10-08 21:46:03 -04:00
839c1983a0 Reduce padding needed for optional types and clean up some redundant
type padding
2024-10-08 21:10:36 -04:00
5103fde1c5 Add a test for optionals to ensure they size correctly 2024-10-08 13:39:45 -04:00
954ed42934 Simplify enum/struct codegen by using reusable general-purpose
metamethods for structs/enums instead of metamethod codegen for each struct/enum
defined.
2024-10-08 13:35:18 -04:00
6b9055db7c Deprecate readonly pointers for now 2024-10-04 13:21:56 -04:00
8f346b48aa Fix up some compiler flags around floating point numbers so they work
better with -Ofast and have more standardized behavior
2024-10-03 14:19:23 -04:00
35a19a2d1b Bugfix for Int*Num typechecking 2024-10-03 13:46:59 -04:00
54e336e30f Update array:sample() to use optional weights and do more error checking 2024-10-02 14:42:51 -04:00
c8c137639c Clean examples when doing make clean 2024-09-30 14:40:41 -04:00
1a6ce0047b Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code 2024-09-30 14:39:30 -04:00
2ba07c2cf5 Update docs 2024-09-30 13:58:43 -04:00
ec0606091b Add datetime literal and tests 2024-09-30 13:55:55 -04:00
45425b77e4 Code cleanup 2024-09-30 02:03:03 -04:00
c5ff7d86b9 Bugfix DateTime.new() 2024-09-30 01:55:24 -04:00
793717729a Parameterize with timezones 2024-09-30 01:53:39 -04:00
37780cb323 Update docs 2024-09-29 23:12:41 -04:00
d714519809 Fix some timezone issues 2024-09-29 23:09:37 -04:00
d0c015c74a Add extra example 2024-09-29 20:31:03 -04:00
4ce3f49357 Reference DateTime in the docs 2024-09-29 20:23:23 -04:00
bd54e51a85 Update docs 2024-09-29 20:23:00 -04:00
076f87361d Support using DateTime() as a constructor 2024-09-29 20:19:46 -04:00
f03587be8d Document now() 2024-09-29 20:13:00 -04:00