Timeline for Cannot Block Plus
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:55 | history | edited | CommunityBot |
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
|
|
Aug 4, 2015 at 18:26 | comment | added | Mr.Wizard | @Michael Thank you! I worried there would be problems like that I had failed to think through. I'll have to consider how this case might be improved, or if this construct still has a purpose. :-/ | |
Aug 4, 2015 at 11:13 | comment | added | Michael E2 |
Have you looked at hardBlock[{Plus}, Hold[1 + 2*2] /. x_Plus :> With[{r = x}, r /; True]] // Trace ? I think the Plus inside Hold is neither changed nor replaced. Consider hardBlock[{Plus}, Hold[1 + 2*2] /. HoldPattern[x_Plus] :> With[{r = x}, r /; True]] instead. (The thing that made me wonder was that 2*2 did not become 4 .)
|
|
Aug 4, 2015 at 5:42 | history | answered | Mr.Wizard | CC BY-SA 3.0 |