Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - howto compare references
Author Message
  Post subject:  Re: howto compare references  Reply with quote
malex wrote:
how about the "same" method?

ok, same checks if the reference objects are identic,
but then how to test if two references ref1 and ref2 are tied to the >same object<?
Code:
system("reference");
ring rng =0,(x),dp;

reference ref1 = rng;
reference ref2 = rng;
system(ref1,"same",ref2); //0
Post Posted: Thu Jun 12, 2014 3:20 pm
  Post subject:  Re: howto compare references  Reply with quote
how about the "same" method?

Code:
> system(ref1, "help");
system(<ref>, ...): extended functionality for reference/shared data <ref>
  system(<ref>, count)         - number of references pointing to <ref>
  system(<ref>, enumerate)     - unique number for identifying <ref>
  system(<ref>, undefined)     - checks whether <ref> had been assigned
  system(<ref>, "help")        - prints this information message
  system(<ref>, "typeof")      - actual type referenced by <ref>
  system(<ref1>, same, <ref2>) - tests for identic reference objects
> system(ref1, "same", ref2);
0
>reference ref3 = ref1;
> system(ref1, "same", ref3);
1
Post Posted: Thu Jun 12, 2014 12:38 am
  Post subject:  howto compare references  Reply with quote
Hello,

is there a method to check if
two Singular references belongs to the same name/object?


Jack

example:
Code:

system("reference");
ring rng =0,(x),dp;

reference ref1 = rng;
reference ref2 = rng;

// how to check if ref1 and ref2 a tied to same name/object?
Post Posted: Thu Sep 26, 2013 6:57 pm


It is currently Fri May 13, 2022 11:04 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group