Junseo Yoo
1643c16d3d
Update docs/user-defined-type-functions.md
...
Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
2024-07-24 13:58:22 -07:00
Junseo Yoo
0c2914e998
Update docs/user-defined-type-functions.md
...
Co-authored-by: James <jamesramsauer@gmail.com>
2024-07-23 15:10:59 -07:00
Junseo Yoo
5722f85152
removed typelib.is*() and added typelib.type() instead
2024-07-18 13:06:49 -07:00
Junseo Yoo
86223cfb38
Merge branch 'jeremyyoo-user-defined-type-functions' of https://github.com/joonyoo181/luau-lang-rfcs into jeremyyoo-user-defined-type-functions
2024-07-18 12:29:23 -07:00
Junseo Yoo
5f490f1d7f
remove print() for first iteration
2024-07-18 12:29:06 -07:00
Junseo Yoo
a34aec51e5
Apply suggestions from code review
...
Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
2024-07-18 12:27:18 -07:00
Junseo Yoo
99547c7c18
Update docs/user-defined-type-functions.md
...
Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
2024-07-18 12:20:52 -07:00
Junseo Yoo
5620eb344e
moved stringle, boolean, number to be an instance attribute of typelib
2024-07-18 10:52:10 -07:00
Junseo Yoo
500bca4457
information about pass by reference and typelib.copy() method
2024-07-18 02:12:18 -07:00
Junseo Yoo
859d264917
Delete String.getmetatable()
2024-07-17 15:37:59 -07:00
Junseo Yoo
8bb94c34ea
added parameters to typelib.newmetatable
2024-07-16 17:18:12 -07:00
Junseo Yoo
59b2290495
Error for returning non-typelib instance
2024-07-16 13:31:10 -07:00
Junseo Yoo
ffe9188c98
fix arguments of Function.setparameters and Function.setreturns
2024-07-15 16:27:24 -07:00
Junseo Yoo
8ec04bc4e0
Clarification to typelib.newfunction methods
2024-07-15 16:19:31 -07:00
Junseo Yoo
4fdc834c04
fix typelib.newfunction
2024-07-15 15:10:00 -07:00
Junseo Yoo
5da2e6e441
Revised typelib.function
2024-07-14 17:36:32 -07:00
Junseo Yoo
7a716e6c77
Added parameters to newfunction function
2024-07-14 16:35:59 -07:00
Junseo Yoo
1d1bcc947c
Added parameters to newtable function
2024-07-14 15:54:20 -07:00
Junseo Yoo
f2685c315b
Fixed rawget example
2024-07-03 14:47:48 -07:00
Junseo Yoo
3babf9bfab
== operator overridden with __eq
2024-07-03 14:37:01 -07:00
Junseo Yoo
97439cfe5e
typelib.nil clashes with the reserved keyword, so changed to typelib.niltype
2024-07-03 14:27:38 -07:00
Junseo Yoo
3a77768fae
merge addprop() and delprop() into one
2024-07-03 13:30:24 -07:00
Junseo Yoo
aa5057a50b
addprop(key, ty.nil) != delprop(key)
2024-07-03 11:22:14 -07:00
Junseo Yoo
361968f1a8
added tbl:getprop(key) to obtain a single value
2024-07-03 10:01:51 -07:00
Junseo Yoo
406ea952e4
Removed overloading metamethods for now
2024-07-03 09:57:28 -07:00
Junseo Yoo
fd981bd74e
make nil, unknown, never, any an instance attribute of typelib; merge getindextype/getindexresulttype into one function
2024-07-02 19:28:51 -07:00
Junseo Yoo
e0f352a665
small fix to reflect table method name change to class method names
2024-07-02 14:16:06 -07:00
Junseo Yoo
a6ee5eddad
renaming methods, overloading __eq __le __newindex, metatable as representation of tables
2024-07-02 14:10:58 -07:00
Junseo Yoo
efa815b920
revising typelib library and method descriptions
2024-07-02 11:13:52 -07:00
Junseo Yoo
b87e39c578
added globals/libraries to a list of illegal constructs
2024-07-02 10:03:56 -07:00
Junseo Yoo
60ef9d3f6c
using colons instead of periods to invoke method calls
2024-07-01 12:09:14 -07:00
Junseo Yoo
db7a65b0da
Added indexer methods for Class types
2024-07-01 12:03:43 -07:00
Junseo Yoo
1ad250d1c4
comment: ~ to not
2024-07-01 11:50:16 -07:00
Junseo Yoo
96611f14cb
colon to invoke methods
2024-07-01 11:48:31 -07:00
Junseo Yoo
0cc4a86dca
big revision on library methods, reason for using userdata, illegal constructs in type functions; need to add support for generic types and list of supported libraries/globals
2024-07-01 11:44:38 -07:00
Junseo Yoo
689d466090
Starlark approach without execution limit
2024-06-28 18:29:07 -07:00
Junseo Yoo
e58213f629
fix typos in method names
2024-06-27 15:27:20 -07:00
Junseo Yoo
2906909bb2
removed getname() as there aren't real usecases
2024-06-27 11:45:44 -07:00
Junseo Yoo
01752a2063
print to warn; error/return nothing to fail reduction
2024-06-27 10:43:09 -07:00
Junseo Yoo
16759e3527
lType -> typelib
2024-06-27 10:22:12 -07:00
Junseo Yoo
b0451ea9e7
Type functions can not refer to outer scopes
2024-06-27 10:20:54 -07:00
Junseo Yoo
39f80fbc6a
user configurable timeout added
2024-06-26 09:54:38 -07:00
Junseo Yoo
e1005b27a6
type functions can call other type functions but not regular functions
2024-06-26 09:12:46 -07:00
Junseo Yoo
8a7903f906
Added a section about type function type checking as one of future works
2024-06-26 08:44:28 -07:00
Junseo Yoo
5320557a0e
getname() should return string not table
2024-06-24 16:38:39 -07:00
Junseo Yoo
421be7551b
addressing comment: boolean is equivalent to true | false
2024-06-24 16:24:36 -07:00
Junseo Yoo
cde3866893
table runtime representation still depends on VM
2024-06-24 16:14:29 -07:00
Junseo Yoo
4231d1dcb5
library names to luacase
2024-06-24 15:16:15 -07:00
Junseo Yoo
4079470d35
Initial commit for UDTF
2024-06-24 13:34:03 -07:00
Junseo Yoo
766134c2d5
Renamed all instances of type operators to type functions ( #43 )
...
* Renamed all instances of type operators to type functions
* Update docs/index-type-operator.md
Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
---------
Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
2024-06-20 12:52:09 -07:00