Variable assignment

okibi okibi at ratedo.com
Mon Mar 26 10:19:13 PDT 2007


I've been writing an xml editor and testing some code. I ran into this problem with 1.006+ (didn't have the problem in 1.00, jumped straight to 1.006 after that).

The problem is declaring variables in a class, and then setting them within a function inside the class. For example, I declare both var1 and var2. I use an open function and set var1 to the file selected. Then I run an export function and set var2 to that file. When I issue the save function afterwords, var1 was adjusted to the same value as var2. I found out that this happens while setting var2.

Any tips or do you need more info?


More information about the Digitalmars-d-bugs mailing list