Talk:Variables: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 14: Line 14:
(This, of course, assumes that there isn't already a constants page on here somewhere.) -- [[User:Eriksiers|Eriksiers]] 18:34, 20 October 2009 (UTC)
(This, of course, assumes that there isn't already a constants page on here somewhere.) -- [[User:Eriksiers|Eriksiers]] 18:34, 20 October 2009 (UTC)
:If the task is here, it's not where I'd put it ([[:Category:Basic language learning]]). I think it might be good to add it. Though if this task stays intact (see dispute above) it might be better to add it here. --[[User:Mwn3d|Mwn3d]] 18:38, 20 October 2009 (UTC)
:If the task is here, it's not where I'd put it ([[:Category:Basic language learning]]). I think it might be good to add it. Though if this task stays intact (see dispute above) it might be better to add it here. --[[User:Mwn3d|Mwn3d]] 18:38, 20 October 2009 (UTC)
::The above dispute is why I asked first, rather than just doing it. -- [[User:Eriksiers|Eriksiers]] 18:42, 20 October 2009 (UTC)

Revision as of 18:42, 20 October 2009

Similarity to Scope modifiers

Is it just me or is this task really similar to Scope modifiers? Maybe they needs to be merged? I may be crazy. --Mwn3d 20:55, 16 July 2009 (UTC)

I see what you mean. --Paddy3118 02:49, 17 July 2009 (UTC)

So what's the plan? --Mwn3d 01:24, 27 July 2009 (UTC)

Constants

I'm wondering if it would be worth it to either add constants to this task, or make another, related task for declaring constants. Something like:

Show how to declare a constant (i.e. a variable that can't be changed after being declared).

(I'm thinking of constants as opposed to literals, like const int x = 1 or even #define x 1 rather than just 1.) Y'know, the things that you use instead of magic numbers. -- Eriksiers 17:41, 20 October 2009 (UTC)

(This, of course, assumes that there isn't already a constants page on here somewhere.) -- Eriksiers 18:34, 20 October 2009 (UTC)

If the task is here, it's not where I'd put it (Category:Basic language learning). I think it might be good to add it. Though if this task stays intact (see dispute above) it might be better to add it here. --Mwn3d 18:38, 20 October 2009 (UTC)
The above dispute is why I asked first, rather than just doing it. -- Eriksiers 18:42, 20 October 2009 (UTC)