Question about "nameof"
georgm · Fri Aug 08, 2008 1:19 pm
Can anybody tell me what is wrong with the following code?
In other words, I try to grab the name of my basering into s, and want to switch to this ring later. How should I get this to work? Right now it tells me:
I strongly suspect this has worked for an old version of Singular (maybe 2.0).
Code:
ring r = 0,(x,y,z),dp;
string s = nameof(basering);
setring s;
string s = nameof(basering);
setring s;
In other words, I try to grab the name of my basering into s, and want to switch to this ring later. How should I get this to work? Right now it tells me:
Code:
? s is no name of a ring/qring
? error occurred in STDIN line 14: `setring s; `
? error occurred in STDIN line 14: `setring s; `
I strongly suspect this has worked for an old version of Singular (maybe 2.0).