Page 2 of 2
Re: Bug with Dereference Operator
Posted: 30 Jun 2014 14:44
by admin
" left side "...
Re: Bug with Dereference Operator
Posted: 30 Jun 2014 14:48
by bdeshi
Yes, but set, unset does this without a right side!
...Consistency...
Re: Bug with Dereference Operator
Posted: 30 Jun 2014 15:02
by admin
1) This thread showed a real bug: $str = '$str'.1; ... does not work as expected.
2) I added a line. Might help.
Re: Bug with Dereference Operator
Posted: 30 Jun 2014 15:11
by PeterH
admin wrote:" left side "...
Do you want to say this implies that a right side (i.e. the init value) *must* exist?
1) I wouldn't think so just from the wording
2) that would make it rather unusable, as globals/perms are to be used in different (sub-)-routines, but if you set a global in one, and try to "read" it in another routine, you must overwrite it (in defining it global) before it can be read.
Re: Bug with Dereference Operator
Posted: 30 Jun 2014 15:17
by PeterH
admin wrote:1) This thread showed a real bug: $str = '$str'.1; ... does not work as expected.
2) I added a line. Might help.
Ah - me again. But I was just trying to make it short
Correct would be:
Code: Select all
$nr = 1;
$str = '$str'.$nr;
Global *$str;
"Böse Falle" that the concenating dot was interpreted as decimal dot

Re: Bug with Dereference Operator
Posted: 30 Jun 2014 15:17
by admin
Well, try next version. (No note in change log)
Re: Bug with Dereference Operator
Posted: 30 Jun 2014 15:18
by PeterH
admin wrote:Well, try next version. (No note in change log)
Thanks - will have a look

Re: Bug with Dereference Operator
Posted: 30 Jun 2014 15:28
by admin
PeterH wrote: Global *$str;[/code]"Böse Falle" that the concenating dot was interpreted as decimal dot

Yes. Fixed in next beta.
Re: Bug with Dereference Operator
Posted: 30 Jun 2014 17:20
by PeterH
admin wrote:PeterH wrote:"Böse Falle" that the concenating dot was interpreted as decimal dot

Yes. Fixed in next beta.
This is one of the rare times a bug is "nearly acceptable*
In '$a'.1 the dot *could* be interpreted as decimal dot. So I didn't report this as a bug.
But correct: here the meaning of a concatenation dot should take precedence about the meaning of a decimal dot
So thanks again!
(And eager to test

)
Re: Bug with Dereference Operator
Posted: 01 Jul 2014 21:15
by PeterH
Tested new beta: very fine!
In:
not only the last line works now, but also the first.
So: all at it's best
Big thanks, and more
Will go to use it in real world coding now

Re: [FIXED] Bug with Dereference Operator
Posted: 02 Jul 2014 08:05
by bdeshi
Thanks from here too! Very helpful.