Skip to content

Conversation

@jonsequitur
Copy link
Contributor

@jonsequitur jonsequitur commented Apr 14, 2020

Here I'm experimenting with how to access a variable in one subkernel from another subkernel.

Please have a look at VariableSharingTests.cs and share your thoughts.

The next step in the experiment is to do something like this:

#!fsharp
let x = 123
#!csharp
fsharp.TryGetVariable("x", out var x);
x

EDIT: The latter approach isn't working yet as it requires cross-kernel dependency resolution for types.

@jonsequitur jonsequitur requested review from TylerLeonhardt, colombod and daxian-dbw and removed request for daxian-dbw April 14, 2020 00:20
@jonsequitur jonsequitur force-pushed the more-variable-sharing branch from ccb9d6d to 9cdb42b Compare April 22, 2020 19:10
@jonsequitur jonsequitur force-pushed the more-variable-sharing branch from 9cdb42b to 57f506d Compare April 22, 2020 23:20
@jonsequitur jonsequitur merged commit 81df31c into dotnet:master Apr 23, 2020
@jonsequitur jonsequitur deleted the more-variable-sharing branch July 29, 2020 15:46
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.

2 participants