Stratego/XT JIRA  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STR-608
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Minor Minor
Assignee: Martin Bravenboer
Reporter: Lennart Kats
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
Stratego/XT

string-replace doesn't work for many cases

Created: 2006-08-02 17:38   Updated: 2008-03-31 20:46
Component/s: stratego-lib - Stratego Library
Affects Version/s: None
Fix Version/s: 0.17

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
stratego> <string-replace(|"foo", "bar")> "is there a foo around here?"
"baris there a around here?"

Note that it does work for *some* cases, like the one from the strategy's example:
stratego> <string-replace(|"foo", "bar")> "foobarfoo"
"barbarbar"

 All   Comments   Work Log   Change History      Sort Order:
Martin Bravenboer [2006-08-02 17:44]
This has been fixed recently, see also issue STR-593

From revision 15399 string-replace should work correctly (at least it does for much more tests and your example).

Thanks for reporting anyway :)

Lennart Kats [2006-08-02 19:51]
Thanks, good to hear that it was fixed. It appears that I was using an older version of the library, loaded through libdryad (which overrides my libstratego-lib import, perhaps another issue?). Without the libdryad import - or with a freshly compiled libdryad.la - it works fine for me too.