Created
November 17, 2010 04:16
-
-
Save noqisofon/702965 to your computer and use it in GitHub Desktop.
簡単なリモートオブジェクト。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using std; | |
| using runtime.remoting; | |
| using runtime.remoting.channels; | |
| using runtime.remoting.channels.ipc; | |
| namespace sample.demo.remotingipc { | |
| /* | |
| * MarshalByReferenceObject は runtime.remoting 名前空間に存在します。 | |
| */ | |
| public class Counter extends MarshalByReferenceObject { | |
| private let count_ = 0; | |
| public get function count() : int { | |
| return count_ ++; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment