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 - link a reference object
Author Message
  Post subject:  Re: link a reference object  Reply with quote
In Singular, <typename>(<object>) is always a cast to the named type
- with this exception. Its therefore number one on the "to remove" list.
So: please do not use "reference" and "shared".
Everything else:
http://www.singular.uni-kl.de/Manual/4-0-0/sing_253.htm
Post Posted: Wed Jun 11, 2014 6:39 pm
  Post subject:  link a reference object  Reply with quote
Hello,

when using references, I stumbled over he following question:
what does
Code:
    link(reference)

exacly do?

Code:
system("reference");
ring rng=0,x,dp;
attrib(rng,"name","rng");

reference rngRef=rng;
attrib(rngRef,"nameRef","rngRef");
attrib(rngRef,"nameRef");

def  linkedRng=link(rngRef); // what happens behind the scenes?
attrib(linkedRng,"nameRef"); // not present, why?
attrib(linkedRng,"name");   // not present, why?


Why does attrib not work for the linked object?
Should it work, or do I misunderstsand the concepts?

Jack
Post Posted: Tue Oct 08, 2013 12:53 pm


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