On Wed, Aug 09, 2006 at 09:06:14AM +1000, Carlo Sogono wrote: > Thanks. I've seen this before and I was hoping if other people had any > other suggestions. The last post had a sample 3 line code which > supposedly uses 2 classes. After looking at the class definitions, > they're actually abstracts so his example won't work. I would have to > add at least 2 more lines to make it work. I just find it silly that > what memcpy() would do in 1 line would take at least 5 in Java.
Welcome to Java :-) Not that it would make it shorter necessarily, but JNI is another possibility -- call native code from Java. Jtux is a very nice implementation of Posix/Single Unix Specification calls in Java using JNI. See http://www.basepath.com/aup/jtux/ This doesn't include memcpy, but the jtux code uses memcpy, so it might help to have a read. This thread on experts-exchange has some good info and links as well: http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/Q_20942471.html Matt _______________________________________________ coders mailing list [email protected] http://lists.slug.org.au/listinfo/coders
