compare tow classes

SALT, SPICE, Subversion, etc...

compare tow classes

Postby ray on Tue May 12, 2015 4:18 pm

I have a class on my desktop pc and a different version of the same class on my laptop.

How can I easily load the classes at the same time so I can compare the differences method by method?
Ray Cannon
Please excuse any smelling pisstakes.
User avatar
ray
 
Posts: 218
Joined: Wed Feb 24, 2010 12:24 am
Location: Blackwater, Camberley. UK

Re: compare tow classes

Postby DanB|Dyalog on Tue May 12, 2015 7:48 pm

I suggest you ]SAVE them as text files and compare the files, e.g.
Code: Select all
   ]SAVE PCclass \tmp\PCclass
then on the laptop
Code: Select all
   ]SAVE Laptopclass \temp\Laptopclass
then bring the 2 files together if the PCs don't see each other, say in C:\tmp, and do
Code: Select all
   ]SALT.Compare  \tmp\PCclass  \tmp\Laptopclass

you can also use 3rd party comparison software if you know a good one. I use BeyondCompare.
DanB|Dyalog
 

Re: compare tow classes

Postby Phil Last on Wed May 13, 2015 4:18 pm

Nothing wrong with Dan's suggestions but there is another alternative which is to bring in one of the classes, assign its ⎕SRC to a variable, bring in the the other, assign its ⎕SRC to a variable and compare the two variables.
User avatar
Phil Last
 
Posts: 624
Joined: Thu Jun 18, 2009 6:29 pm
Location: Wessex


Return to Source Code Management

Who is online

Users browsing this forum: No registered users and 1 guest