P.S. I must have thought about fixing copy:) Don't know why I didn't
2014-11-06 17:54 GMT+02:00 Mark Rizun :
> If I understand #postCopy is used to override standart copy. Each class
> has(or may have) its own implementation of #postCopy.
> When #copy is applied, #postCopy is called.
>
> 2014-11-
If I understand #postCopy is used to override standart copy. Each class
has(or may have) its own implementation of #postCopy.
When #copy is applied, #postCopy is called.
2014-11-06 17:47 GMT+02:00 Marcus Denker :
>
> On 06 Nov 2014, at 16:24, Mark Rizun wrote:
>
> Normally #copy should copy the
> On 06 Nov 2014, at 16:24, Mark Rizun wrote:
>
> Normally #copy should copy the AST. But it might not copy all the things
> related to start/stop.
>
> Yes #copy, copies not all stuff. That's why I need #deepCopy but it just
> crashes image. And #veryDeepCopy works vry slow.
> I need anot
>
> Normally #copy should copy the AST. But it might not copy all the things
> related to start/stop.
>
Yes #copy, copies not all stuff. That's why I need #deepCopy but it just
crashes image. And #veryDeepCopy works vry slow.
I need another solution. Any suggestions? Maybe there is some kind o
Hello,
Normally #copy should copy the AST. But it might not copy all the things
related to start/stop.
I think we should fix it to do that, too.
(sorry that I am a bit slow answering… lots of things to do)
> On 06 Nov 2014, at 11:36, Mark Rizun wrote:
>
> Do you have any other suggestions ho
Do you have any other suggestions how can I get completely indemendent copy
of ast?
2014-11-06 12:19 GMT+02:00 Mark Rizun :
> As I said, I used veryDeepCopy for copying ASTs, and it worked. But! It
> takes time to copy:)
>
> 2014-11-06 11:59 GMT+02:00 Mark Rizun :
>
>> You see, when I alpply deep
As I said, I used veryDeepCopy for copying ASTs, and it worked. But! It
takes time to copy:)
2014-11-06 11:59 GMT+02:00 Mark Rizun :
> You see, when I alpply deepCopy instead of copy, pharo image doesn't
> respond:)
> What I want is to get 100% independent new object ast2, with same
> caracterist
You see, when I alpply deepCopy instead of copy, pharo image doesn't
respond:)
What I want is to get 100% independent new object ast2, with same
caracteristics as ast1.
P.S. Uko, thanks veryDeepCopy works. Read the comments to both methods but
still confused why deepCopy didn't work.
Le 05/11/2014 18:04, Mark Rizun a écrit :
Hi everyone,
I want to get a deep copy of ast. But deepCopy doesn't work:)
What I mean:
| ast1 ast2 |
ast1 := RBParser parseRewriteExpression: 'self'.
ast2 := ast1 copy."or without copy"
ast1 stop: 99.
ast2 stop
When evaluate this you get 99. I want it
I’m not sure if this is a case, but there is deepCopy and veryDeepCopy, maybe
you should take a look at that.
Uko
> On 05 Nov 2014, at 18:04, Mark Rizun wrote:
>
> Hi everyone,
>
> I want to get a deep copy of ast. But deepCopy doesn't work:)
> What I mean:
>
> | ast1 ast2 |
> ast1 := RBPars
Hi everyone,
I want to get a deep copy of ast. But deepCopy doesn't work:)
What I mean:
| ast1 ast2 |
ast1 := RBParser parseRewriteExpression: 'self'.
ast2 := ast1 copy."or without copy"
ast1 stop: 99.
ast2 stop
When evaluate this you get 99. I want it to be 4.
So I want to have separate object
11 matches
Mail list logo