Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Variable Name Causing Error. Why?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steve Moore  
View profile  
 More options Aug 20 2012, 1:04 pm
From: Steve Moore <moor...@co.larimer.co.us>
Date: Mon, 20 Aug 2012 10:04:52 -0700 (PDT)
Local: Mon, Aug 20 2012 1:04 pm
Subject: Variable Name Causing Error. Why?

I'm new to Railo, so may not understand something (been using CF for 10+ years), but why does statement 1 give me the error "string tag [cfset] is not closed", but statement 2 runs fine?

1) <cfset not2RegisterArray = arrayNew(2)>

2) <cfset notToRegisterArray = arrayNew(2)>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Drew  
View profile  
 More options Aug 20 2012, 1:51 pm
From: Mark Drew <m...@getrailo.com>
Date: Mon, 20 Aug 2012 18:51:22 +0100
Local: Mon, Aug 20 2012 1:51 pm
Subject: Re: [railo] Variable Name Causing Error. Why?
I think it's something to do with the NOT in the front of the array maybe? I am sure it's an oddity in the parser it seems since this also works:
<cfset no2RegisterArray = arrayNew(2)>

Very very odd.

I shall add a bug for it

Mark Drew

Railo Technologies      Professional Open Source
skype: mark_railo       m...@getrailo.com
+44 7971 852296 http://www.getrailo.com

On 20 Aug 2012, at 18:04, Steve Moore <moor...@co.larimer.co.us> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Offner  
View profile   Translate to Translated (View Original)
 More options Aug 22 2012, 9:21 am
From: Michael Offner <mich...@getrailo.com>
Date: Wed, 22 Aug 2012 15:21:45 +0200
Local: Wed, Aug 22 2012 9:21 am
Subject: Re: [railo] Variable Name Causing Error. Why?

not is a keyword in cfml
take this example:
<cfset test=true>
<cfif not test></cfif>

"problem" is that the space after the not is optinal when there is no
letter following.

example:
<cfif not 2></cfif>
same as
<cfif not2></cfif>

in ACF this space is required for "not", that is the difference.

/micha

2012/8/20 Mark Drew <m...@getrailo.com>

--
/micha

Michael Offner CTO Railo Technologies GmbH


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charlie Griefer  
View profile  
 More options Aug 22 2012, 10:16 am
From: Charlie Griefer <charlie.grie...@gmail.com>
Date: Wed, 22 Aug 2012 07:16:45 -0700
Local: Wed, Aug 22 2012 10:16 am
Subject: Re: [railo] Variable Name Causing Error. Why?

On Wed, Aug 22, 2012 at 6:21 AM, Michael Offner <mich...@getrailo.com> wrote:
> not is a keyword in cfml
> take this example:
> <cfset test=true>
> <cfif not test></cfif>

> "problem" is that the space after the not is optinal when there is no letter
> following.

> example:
> <cfif not 2></cfif>
> same as
> <cfif not2></cfif>

> in ACF this space is required for "not", that is the difference.

Is that not a bug in Railo, then? Sounds like you're saying that's
just a difference between ACF and Railo, and that it's intended
behavior. Are there actually use cases where a developer _wouldn't_
want to use the space?

--
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love
my wife. And I wish you my kind of success.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Offner  
View profile   Translate to Translated (View Original)
 More options Aug 22 2012, 10:44 am
From: Michael Offner <mich...@getrailo.com>
Date: Wed, 22 Aug 2012 16:44:55 +0200
Local: Wed, Aug 22 2012 10:44 am
Subject: Re: [railo] Variable Name Causing Error. Why?

you can consider this as a bug, mark has already open a ticket for this:
https://issues.jboss.org/browse/RAILO-2038

the reason is that the space between the operator and the oprand is always
optional if possible like for example with the alias of "not":
<cfif *!*test> ...
in this case the space is also optional.
i just try to explain why this happen, i had no intention to say this is
correct.

/micha

2012/8/22 Charlie Griefer <charlie.grie...@gmail.com>

--
/micha

Michael Offner CTO Railo Technologies GmbH


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charlie Griefer  
View profile   Translate to Translated (View Original)
 More options Aug 22 2012, 10:48 am
From: Charlie Griefer <charlie.grie...@gmail.com>
Date: Wed, 22 Aug 2012 07:48:12 -0700
Local: Wed, Aug 22 2012 10:48 am
Subject: Re: [railo] Variable Name Causing Error. Why?

On Wed, Aug 22, 2012 at 7:44 AM, Michael Offner <mich...@getrailo.com> wrote:
> you can consider this as a bug, mark has already open a ticket for this:
> https://issues.jboss.org/browse/RAILO-2038

> the reason is that the space between the operator and the oprand is always
> optional if possible like for example with the alias of "not":
> <cfif !test> ...
> in this case the space is also optional.
> i just try to explain why this happen, i had no intention to say this is
> correct.

Ah, understood. The "!test" example makes perfect sense. Appreciate
the explanation.

--
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love
my wife. And I wish you my kind of success.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hendrik Kramer  
View profile   Translate to Translated (View Original)
 More options Aug 22 2012, 1:48 pm
From: Hendrik Kramer <hendrik.kra...@gmail.com>
Date: Wed, 22 Aug 2012 10:48:34 -0700 (PDT)
Local: Wed, Aug 22 2012 1:48 pm
Subject: Re: [railo] Variable Name Causing Error. Why?

One small thing: If you fix this bug, please still allow  <cfif !len(...)>
without a whitespace inbetween; otherwise I had to change a lot of code.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charlie Griefer  
View profile   Translate to Translated (View Original)
 More options Aug 22 2012, 1:59 pm
From: Charlie Griefer <charlie.grie...@gmail.com>
Date: Wed, 22 Aug 2012 10:59:00 -0700
Subject: Re: [railo] Variable Name Causing Error. Why?
On Wed, Aug 22, 2012 at 10:48 AM, Hendrik Kramer

<hendrik.kra...@gmail.com> wrote:
> One small thing: If you fix this bug, please still allow  <cfif !len(...)>
> without a whitespace inbetween; otherwise I had to change a lot of code.

Heh. Agreed with Hendrik.

<cfif !foo>
<cfif not foo>

Gotta say tho, not a real big fan of <cfif ! foo>.
People do that? (not judging... just asking. really!) :)

--
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love
my wife. And I wish you my kind of success.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Offner  
View profile  
 More options Aug 23 2012, 2:51 am
From: Michael Offner <mich...@getrailo.com>
Date: Thu, 23 Aug 2012 08:51:16 +0200
Local: Thurs, Aug 23 2012 2:51 am
Subject: Re: [railo] Variable Name Causing Error. Why?

sure, this change will not affect any other operator!

/micha

2012/8/22 Hendrik Kramer <hendrik.kra...@gmail.com>

> One small thing: If you fix this bug, please still allow  <cfif !len(...)>
> without a whitespace inbetween; otherwise I had to change a lot of code.

--
/micha

Michael Offner CTO Railo Technologies GmbH


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »