2015-02-01ãã1ã¶æéã®è¨äºä¸è¦§
åçãªå¤æ æ§ãæã£ãåã®ãªãã¸ã§ã¯ããã³ã³ããã§æ±ãããå ´åãåºæ¬ã¯ã©ã¹ã®åç §åã¾ãã¯åºæ¬ã¯ã©ã¹ã®ãã¤ã³ã¿åã®ã³ã³ããã使ããã¨ãã§ãã¾ã: #include <iostream> #include <memory> #include <vector> struct A { void disp() const { do_disp(); } private: virtual void do_</vector></memory></iostream>â¦
Scalaã«ããã¤ããC++ã®ç´¹ä» Scalaã«ã¯é¨åé©ç¨ãããé¢æ°ã¨ãããã®ãããã¾ããScalaã§ã¯å¿ è¦ãªå¼æ°ã渡ãã¦é¢æ°ãå¼ã³åºããã¨ããé¢æ°ãå¼æ°ã«é©ç¨ãã(apply)ã¨è¡¨ç¾ãã¾ããä¾ãã°: def sum(a: Int, b: Int, c: Int) = a + b + c ã¨ããé¢æ°ããã£ãã¨â¦