New Message: Re: Handling 'cr' differently?

webmaster at userland.com webmaster at userland.com
Wed Dec 14 14:39:44 CST 2005


A new message was posted:

Address: http://manila.userland.com/discuss/msgReader$1529

By: Alan German (asg at erols.com)

Glad to hear your forms are working again.

That value could have been changed accidentally, by a script, if the programmer had used a variable called cr and had not declared that as a local variable before assigning a value. This is a common mistake [I've done it myself]:

cr = '\n'

instead of

local (cr = '\n')

In the first case, Frontier happily finds the constant at system.verbs.constants.cr and clobbers the real value.

This is a Manila site... http://manila.userland.com/.




More information about the Manila-Users mailing list