Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OCaml で即時オブジェクトを作成しました。
let x = object (self) val dataMember = 3 method aMethod = print_endline "Called a method" end;;
オブジェクトには名前がないので (匿名と見なされますか?)、UML で正しく表現するにはどうすればよいでしょうか?
ありがとう。
nonce-name またはその他の定型的な値を指定できます。この文脈での「正しく」とは、単に明確になることを意味します。国際UML標準化団体などから伝えられた「正解」はありません。
より具体的な答えが必要な場合はAnonymous_foo_mungler、「 」が匿名でないfoo_mungler場合に付けたであろうわかりやすい名前に置き換えたような名前にしてみませんか。
Anonymous_foo_mungler
foo_mungler