Re: define a new data type



On 28 Jul 2005 14:56:49 -0700, "Wizumwalt@xxxxxxxxx"
<Wizumwalt@xxxxxxxxx> wrote:

>Anyone know how to do something like this C code in Java.
>
>#define Point2fT Tuple2fT

Java doesn't have that.

>I have a Tuple2 class which I'd like to define a new data type for as
>Point2. So I tried making Tuple2 an interface and extending from that,
>but that seemed like overkill.
>
>public class Point2fT extends Tuple2fT ...
>
>Is there a better way to do this?

why? I cannot think of any reason to do that, but there may be...
What's your reason?

--
now with more cowbell
.



Relevant Pages

  • define a new data type
    ... Anyone know how to do something like this C code in Java. ... I have a Tuple2 class which I'd like to define a new data type for as ... Prev by Date: ...
    (comp.lang.java.help)
  • Re: porting from C++Builder
    ... that's correct and there is a very strong reason for taking this ... the java was growing and, obviously, microsoft initially tried to ... that crowds of developers would rather stay and develop windows applications. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: JVM/Java memory footprint
    ... I found that if I use Java for developing the CLI ... application I will be exhausting the memory of our Application Server ... Just to mention the architecture,users use ... what WHAT specific REASON do you have to make ...
    (comp.lang.java.programmer)
  • Re: 7.0 wishlist?
    ... I felt the former was a better fit, since language design/change is an issue of interest to the programmers that use the language, and language changes are really specification changes that require tools like the compiler to be updated as side-effects. ... It was considerably more on-topic than some of yours have been (notably the ones that are 80% personal attacks by dry weight and only 20% Java programming related -- and high in saturated fat too no doubt!). ... If it is not your actual attitude, then your posts to this thread either are an unrepresentative sample or communicate your true feelings poorly for whatever reason. ... than you were in your original posting. ...
    (comp.lang.java.programmer)
  • Re: kilyx
    ... somewhat compatible with, for good reason) ... There's a difference between what the IDE is built in and what GUI ... Borland built a C++ IDE around a Java core ...
    (borland.public.delphi.non-technical)