Skip to content

Commit

Permalink
ezr² v0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Uralstech committed Nov 6, 2024
1 parent fae2e10 commit 938c725
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ CHANGELOG - What's new?
See the GitHub releases for more detailed info:
https://github.com/Uralstech/ezrSquared/releases

* ezr² RE - v0.10.0 [06-11-24]
* [BREAKING CHANGE] `EzrArray.Length` is now `EzrArray.Count`.
* [BREAKING CHANGE] `EzrList.Length` is now `EzrList.Count`.
* [BREAKING CHANGE] `RuntimeEzrObjectDictionary.Length` is now `RuntimeEzrObjectDictionary.Count`.
* Dictionaries can now be iterated through using for-each loops.
* When requesting the keys of a dictionary, `RuntimeEzrObjectDictionary` will now copy them before returning, except for when using `IEnumerable` overrides.
* Fixed reference registration bugs in `EzrList` and `EzrDictionary`.
* Fixed context releasing bug in `EzrFunction`.
* New `IEzrEnumerable` interface for iterables that can be used by the for-each loop.
* New `IDictionary` interface for dictionary-like types.

* ezr² RE - v0.9.0 [04-11-24]
* There are *many* breaking changes in this version. Please check the GitHub changelogs for more details.
* Overhaul of C# compatibility and source wrappers.
Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ out, you can download it from the [***releases page on GitHub***](https://github
* Run the installer and go through the installation.
<br/>

[![ezr² RE v0.9.0 for Windows x64](https://img.shields.io/badge/ezr%C2%B2_RE_v0.9.0_%28Windows_x64%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.9.0/ezrSquared.Shell.Setup.Win64.exe)
[![ezr² RE v0.9.0 for Windows x86](https://img.shields.io/badge/ezr%C2%B2_RE_v0.9.0_%28Windows_x86%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.9.0/ezrSquared.Shell.Setup.Win32.exe)
[![ezr² RE v0.10.0 for Windows x64](https://img.shields.io/badge/ezr%C2%B2_RE_v0.10.0_%28Windows_x64%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.10.0/ezrSquared.Shell.Setup.Win64.exe)
[![ezr² RE v0.10.0 for Windows x86](https://img.shields.io/badge/ezr%C2%B2_RE_v0.10.0_%28Windows_x86%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.10.0/ezrSquared.Shell.Setup.Win32.exe)

# [NuGet](#tab/REnuget)

You can use ezr² RE as a scripting language for your .NET apps by downloading it from NuGet!

[![ezr² RE on NuGet](https://img.shields.io/badge/ezr%C2%B2_RE_on_NuGet-32CD32?style=for-the-badge&logo=nuget&logoColor=white)](https://www.nuget.org/packages/ezrSquared)
[![ezr² RE v0.9.0 (.nupkg download)](https://img.shields.io/badge/ezr%C2%B2_RE_v0.9.0_%28.nupkg_download%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.9.0/ezrSquared.0.9.0-unstable.nupkg)
[![ezr² RE v0.10.0 (.nupkg download)](https://img.shields.io/badge/ezr%C2%B2_RE_v0.10.0_%28.nupkg_download%29-32CD32?style=for-the-badge&logo=github&logoColor=white)](https://github.com/Uralstech/ezrSquared/releases/download/v0.10.0/ezrSquared.0.10.0-unstable.nupkg)

# [Other](#tab/REother)

Expand Down
2 changes: 1 addition & 1 deletion src/Runtime/Types/Collections/EzrDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public override int ComputeHashCode(RuntimeResult result)
foreach (KeyValuePair<int, KeyValuePair<IEzrObject, Reference>> keyValuePair in Value)
{
int keyHash = keyValuePair.Key;

int valueHash = keyValuePair.Value.Value.Object.ComputeHashCode(result);
if (result.ShouldReturn)
return int.MinValue;
Expand Down
2 changes: 1 addition & 1 deletion src/Runtime/Types/Executables/EzrFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void Execute(Reference[] arguments, Interpreter interpreter, RuntimeResul
result.Reference.UpdateRegisteredContext(Context, newContext);
else if (result.Reference.Object.CreationContext.Id == newContext.Id)
result.Reference.Object.UpdateCreationContext(newContext);

result.Success(result.Reference);
newContext.Release();
}
Expand Down

0 comments on commit 938c725

Please sign in to comment.