Hi Matt,

You're right, "or" is a reserved word which explains your first error. But putting quotes around it should allow you to get around it. Since it's throwing an error in that case too then it's certainly a bug. If you can open a bug on it I'll try and get to it this week.

Thanks
Andy

Matthew Woodward wrote:
Thought I'd ask before filing a bug--should I be able to create a struct key with the name 'OR' in the implicit struct notation? For example:

<cfset states = {OR = 'Oregon', WA = 'Washington'} />

I tried with quotes around the key name as well but that didn't work either. I get a badly formatted template error.

This might be expected given that OR is a reserved word but it seems like with the quotes around the key name it should work.

I'm running this on a nightly from 3/7.

--
Matthew Woodward
[email protected] <mailto:[email protected]>
http://blog.mattwoodward.com
identi.ca/Twitter <http://identi.ca/Twitter>: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html
--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
mailing list - http://groups.google.com/group/openbd?hl=en

!! save a network - please trim replies before posting !!

--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
mailing list - http://groups.google.com/group/openbd?hl=en

!! save a network - please trim replies before posting !!

Reply via email to