You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Calls function f with the given arguments in protected mode. This means that any error inside f is not propagated; instead, pcall catches the error and returns a status code. Its first result is the status code (a boolean), which is true if the call succeeds without errors. In such case, pcall also returns all results from the call, after this first result. In case of any error, pcall returns false plus the error message.
? [{}extendsThis ? any : This,T1,T2,T3,T4,T5,T6,T7]
138
-
: [{}extendsThis ? any : This, ...Args[number][]]
139
-
: never
140
-
): [true,ReturnType<T>]|[false,string];
119
+
declarefunctionpcall<This,Argsextendsany[],R>(
120
+
f: (this: This, ...args: Args)=>R,
121
+
context: This,
122
+
...args: Args
123
+
): [true,R]|[false,string];
124
+
declarefunctionpcall<Aextendsany[],R>(
125
+
f: (this: void, ...args: A)=>R,
126
+
...args: A
127
+
): [true,R]|[false,string];
141
128
142
129
/**
143
130
* Receives any number of arguments and prints their values to stdout, using the tostring function to convert each argument to a string. print is not intended for formatted output, but only as a quick way to show a value, for instance for debugging. For complete control over the output, use string.format and io.write.
0 commit comments