Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

When to vote? Re: Motion 31 Suggestions



John (et al),

Recall that we need a green light from you
when it is time to bring this motion to a
formal vote.

Best regards,

Baker

On 02/07/2012 06:02 AM, John Pryce wrote:
Ian, Vincent, P1788

On 26 Jan 2012, at 12:48, Vincent Lefevre wrote:
Ian McIntosh wrote:
User defined literals define a function (or functions) to convert some
sequence of characters in a program that meet some defined syntax
representing a literal into the corresponding internal constant of the
specified type.  The constant is not a function, but the conversion from
its external form to its internal form is defined by a function.  It is
internally represented the same way a variable is and generally treated the
same way a variable is, except that it is not allowed to be changed.  Maybe
1788 could use that approach, instead of defining constants as functions?

The way I see the P1788 text is that constants are regarded as
functions for the spec, but it is up to the language to decide
how they are handled.

I agree. Maybe I'm being naive but I don't see that the P1788 spec contradicts a language definition of constants as Ian describes. The concept of "variable", e.g., is beyond P1788's scope. P1788 just says a constant is a value defined purely by its name (denotation), needing no input arguments.

John Pryce



--

---------------------------------------------------------------
Ralph Baker Kearfott,   rbk@xxxxxxxxxxxxx   (337) 482-5346 (fax)
(337) 482-5270 (work)                     (337) 993-1827 (home)
URL: http://interval.louisiana.edu/kearfott.html
Department of Mathematics, University of Louisiana at Lafayette
(Room 217 Maxim D. Doucet Hall, 1403 Johnston Street)
Box 4-1010, Lafayette, LA 70504-1010, USA
---------------------------------------------------------------