Go to Post Mark McLeod, one of the resident experts on compiler weirdness - Kevin Watson [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 15-06-2010, 10:46
buchanan buchanan is offline
Registered User
FRC #2077 (Laser Robotics)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2007
Location: Wales, WI
Posts: 66
buchanan is just really nicebuchanan is just really nicebuchanan is just really nicebuchanan is just really nice
Re: Non Strict Variables

I don't see anything here that couldn't be translated pretty much directly to Java:
  • The various data types become classes: structs become new classes, double, int, etc become Double, Integer...
  • In the value class, the void* becomes Object, the enum type becomes Class, the value* becomes an object reference to the parent instance of the same class.
  • Casts, methods, etc stay almost the way they are.
  • Mallocs become new Whatever, frees go away.
This would look very odd in Java, and one suspects the problem being solved, whatever it is, could be addressed in a more idiomatic way (interfaces, as mentioned, come to mind), but unless I'm missing something the code could be ported almost as is.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strict enforcement of Trailer Hitch rules? Chath Maral Rules/Strategy 2 17-01-2009 12:15
auton variables sirbleedsalot Programming 4 26-03-2005 14:24
Static Variables amateurrobotguy Programming 8 04-03-2005 00:40
Strict or loose interpretation? Wetzel Rules/Strategy 2 08-05-2002 20:21


All times are GMT -5. The time now is 09:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi