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
If you know about extension methods in C#, you know is good layer of abstraction.
As example SourceMod have this function:
/** * Converts an integer to a string. * * @param num Integer to convert. * @param str Buffer to store string in. * @param maxlength Maximum length of string buffer. * @return Number of cells written to buffer.*/nativeintIntToString(intnum, char[] str, intmaxlength);
But this can be simplify to:
// Syntax below is not real syntax, just example how it may look
I like this feature in C# and I think it's some clever syntactic sugar. But we're not ready for this in spcomp. Even in the fancy new compiler, it's fundamentally based on tagged cells, and still has no formal notion of types. That makes it harder to implement features like this, and I don't want to add too many kludges around name lookups.
Source-only plugins is probably a blocker for this, but certainly it's a 1.12 feature either way.
If you know about extension methods in C#, you know is good layer of abstraction.
As example SourceMod have this function:
But this can be simplify to:
// Syntax below is not real syntax, just example how it may look
The text was updated successfully, but these errors were encountered: