据说现在的 GJ (Generic java) 可以做到。
解决方案 »
- 最近关于java pos 项目 不知道该怎么做
- 关于swing白窗口问题
- java web 项目中想在持久层把文件写到项目目录下,但是如何获取项目路径?
- 100分求助!取表单文件域的value的值不全!<input type=file value="">
- 我认为最好的java视频教程
- 请教下JAVA实现手机短信收发问题
- 为什么我下载的installAnywhere不能用?急
- 来到csdn已经有半年的时间了,在这里学到了很多知识,感谢所有帮助过我的人,尤其是:pengdali朋友,来者送分!!
- jdk1.3中Enumeration是接口,但是为什么能直接用?
- 请问如何在JAVA中调用C已经编译好的*.o和*.a文件中的函数
- System.in.read(); 错在那里?
- installanywhere的问题,有没有中文帮助??怎么做??急!!
C++ can do that? kidding?
that's why GJ is coming out.
GJ won't be as flexible as template.But safer, simpler, more clean, no code bloating. tons of advantages.
More importantly, you can ship your generic class file, (not source code) to other people.
while in C++, not possible to create a tempalte lib without shipping your code and requiring the user to compile your source code.