protocol fns with dashes may get compiled into property access when used higher order

Description

Problem: Protocol functions with leading hyphens may be incorrectly compiled into field accesses.

Demonstration:

Cause: This was caused by CLJ-872, dash property support.

Solution: Emit forms like (. foo (bar)) instead of (. foo bar), so that names starting with a - don't look like field accesses.

Patch: CLJ-1202.patch

Environment

None

Attachments

1

Activity

Show:

Alex Miller August 8, 2013 at 7:07 AM

More cleansing.

Stuart Sierra August 2, 2013 at 8:21 PM

Screened and cleaned up description.

cldwalker May 10, 2013 at 9:19 PM

Verified patch works

Alan Malloy April 19, 2013 at 1:18 AM

Attached patch fixes the issue, and adds regression test for it.

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code and Test

Priority

Affects versions

Fix versions

Created April 17, 2013 at 2:48 AM
Updated August 15, 2013 at 12:13 AM
Resolved August 15, 2013 at 12:13 AM