Ethan

Results 80 comments of Ethan

It should be possible, it's a bug if not. Can you provide a test case?

Sure. Let's say you have `class A extends B {}` and then you create a new A(). If both class `A` and `B` are _not_ bridge classes, the way this...

Hi, I made the following test: ```dart test('Not null && not empty', () { final runtime = Compiler().compileWriteAndLoad({ 'example': { 'main.dart': ''' void main() { final x = X(); if...

Nevermind, I was able to trigger the issue with setting the value to `null`. The issue is caused by a lack of support for short-circuiting evaluation with the && operator....

Ah not really, this issue is quite old. For Sets, you'd probably need to: - edit [collection/set_map.dart](https://github.com/ethanblake4/dart_eval/blob/master/lib/src/eval/compiler/collection/set_map.dart) in the compiler, - add a $Set wrapper class in `shared` similar to...

Replace the line ```dart return $value.read(args[0]!.$value); ``` with ```dart return rt.wrap($value.read(args[0]!.$value)); ``` Note, this will only work for primitive values like int, String, etc.

I need more information in order to reproduce this. Can you make a small example that demonstrates this error?

Was an error with the example, will be updated in next release. You can change the $new function in the $Book$bridge class to the following to fix: ```dart static $Value?...

That specific use case isn't really supported with the built-in $List class currently. I created an issue to track it. You _could_ make a custom $List wrapper that supports writeback...

This is now supported in v0.7.5 using the new `$List.view()` constructor