Opened 12 years ago

Closed 12 years ago

#333 closed bug (fixed)

Use of variable starting with an underscore followed by a capital letter.

Reported by: david.kirkby@… Owned by: Oleksandr
Priority: minor Milestone: 3-1-4 and higher
Component: dontKnow Version: 3-1-3
Keywords: Cc:


There are various bits of the Singular source code which have variables which start with an underscore and are then followed by a capital letter. A small selection are:  Qi= _Qi; int* _Components = NULL; long* _ShiftedComponents = NULL; int _ExternalComponents = 0;          int* Components = (_ExternalComponents ? _Components :          long* ShiftedComponents = (_ExternalComponents ? _ShiftedComponents:  _Components = Components;  _ShiftedComponents = ShiftedComponents;  _ExternalComponents = 1;  _ExternalComponents = 0;

I believe you will find they are reserved in C++. I don't have a copy of the standard myself, so can't provide a definitive reference, but see for example the following, where I have removed the obvious characters to avoid your anti-spam measures, which seem to be rejecting a lot of quite legitimate attempts I've made to post questions here.

I would suggest you rename these variables to something else.


Change History (2)

comment:1 Changed 12 years ago by seelisch

Owner: changed from somebody to Oleksandr

comment:2 Changed 12 years ago by Oleksandr

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.