Skip to content

Instantly share code, notes, and snippets.

@dmundt
Created November 1, 2012 13:16
Show Gist options
  • Save dmundt/3993580 to your computer and use it in GitHub Desktop.
Save dmundt/3993580 to your computer and use it in GitHub Desktop.
Dart: From Ports to Objects
// Taken from [Dart Today and Beyond (Gilad Bracha/Google)](http://www.dartlang.org/slides/2012/10/html5devconf/dart-today-and-beyond.pdf) (slide 34)
class IsolateWrapper {
SendPort _sendPort;
IsolateWrapper(this._sendPort);
noSuchMethod(name, args){
return _sendPort.call([name, args]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment