Skip to content

Generic extension exception and multiple extension methos for single userdata: fixes#1

Closed
mistial-dev wants to merge 86 commits intohavietisov:generic_extension_exception_fixfrom
mistial-dev:pr-130
Closed

Generic extension exception and multiple extension methos for single userdata: fixes#1
mistial-dev wants to merge 86 commits intohavietisov:generic_extension_exception_fixfrom
mistial-dev:pr-130

Conversation

@mistial-dev
Copy link

Attribution

This PR is from @havietisov - originally submitted as
moonsharp-devs#130

In case we called some extension method in context of some userdata, we are not allowed to call
any other because they will not be indexed (always nil)

example :
userdata.ExtMethod1() --called fine
userdata.ExtMethod2() --null indexer!

and, if we call ExtMethod2 first, ExtMethod1 will be nil

ExtensionMethodsRegistry.GetGenericMatch trying to create GetGenericTypeDefinition of type parameter.

Example:
TweenSettingsExtensions.SetEase(this T t, Ease ease) //causes exception being thrown, because we are not allowed to create T<>

Fernando P. Najera Cano and others added 30 commits October 23, 2015 23:49
-Added null check to LinkedListIndex's clear on its m_map
-Reset Table's length after Clear
… fixed parsing of invalid lua hex codes (e.g. : 5x123F)
Added disposability to debugger host chain
…modulename

Pass the module name as a parameter to modules loaded with require
otoroshi and others added 28 commits September 22, 2019 20:03
Bug
Since NumVal of closure of bytecode output by ScriptDump is absolute address, when using LoadStream, it jumps to an invalid address.

Fix
Since the Closure value field is an address value, it has been changed to NumValAsCodeAddress so that relocation is possible.
…ber-fix

Fixed json parser not being able to handle negative numbers.
Support unboxing nil Lua values to CLR (default) value types.
Added Options to control "fuzzy" matching of userdata methods, etc
It does use invariant culture in tostring() and DynValue.ToString() for example, so this is an inconsistency
Useful for consumers as it can be combined with
StandardUserDataDescriptor via CompositeUserDataDescriptor.
…cling_mono

Added Coroutine recycling for Mono
Auto Number->string conversion uses InvariantCulture
Fix OsTimeModule.clock returning nil at application start
fix Unicode2Ascii does not return char of ascii code 255 (fixes moonsharp-devs#256)
@mistial-dev
Copy link
Author

Sorry, this was backwards. Was trying to merge your PR into my branch. The GH interface is a pain sometimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.