digitalmars.D.learn - funny behaviour
- hrk (14/14) Aug 03 2008 hi all,
- Koroskin Denis (3/21) Aug 03 2008 Could you show a code sample so that we could compile and test it, pleas...
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- Koroskin Denis (2/41) Aug 03 2008 No-no, not like this! Strip the sample down as much as possible, first.
- hrk (6/56) Aug 04 2008 hi,
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (3/36) Aug 03 2008 sure - thanks for trying
- hrk (5/38) Aug 03 2008 sure - thanks for trying
- hrk (2/52) Aug 03 2008
hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2); it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.
Aug 03 2008
On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 1 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
On Mon, 04 Aug 2008 00:50:22 +0400, hrk <l8atnight gmail.com> wrote:sure - thanks for trying file 1 Koroskin Denis Wrote:No-no, not like this! Strip the sample down as much as possible, first.On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybodyhelp?I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private orpublic.Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
hi, i found the bug. in a method i declared a variable "double divisor;" as soon as i rename it to "double divisorxxx;" or any other name the program works. a variable -divisor- is used in std.date and in bigint. in my project only std.date is imported. this variable is probably the the reason. i use 2.x hrk Koroskin Denis Wrote:On Mon, 04 Aug 2008 00:50:22 +0400, hrk <l8atnight gmail.com> wrote:sure - thanks for trying file 1 Koroskin Denis Wrote:No-no, not like this! Strip the sample down as much as possible, first.On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybodyhelp?I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private orpublic.Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 04 2008
sure - thanks for trying file 2 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 3 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 4 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 6 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 7 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 8 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 10 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 11 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 12 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 13 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 14 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 15 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying file 16 Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sure - thanks for trying i am not able to send the libs and dll since it is denied. if you are willing to send me an email i'll send them to you. please - the code is experimental, not cleaned etc..., but starts to work it's free, with just one limitation: betterments, bugfixes etc should be publised and free for any purpuse. Koroskin Denis Wrote:On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybody help? I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private or public. Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008
sorry, never the less one wouls ned the test database and the source are still to interwined Koroskin Denis Wrote:On Mon, 04 Aug 2008 00:50:22 +0400, hrk <l8atnight gmail.com> wrote:sure - thanks for trying file 1 Koroskin Denis Wrote:No-no, not like this! Strip the sample down as much as possible, first.On Sun, 03 Aug 2008 22:11:49 +0400, hrk <l8atnight gmail.com> wrote:hi all, just don’t know what’s happening anymore. Could anybodyhelp?I do have an array, const double const_dscales[19] = [ 1.0,1.0E1, 1.0E2, 1.0E3, 1.0E4, 1.0E5, 1.0E6, 1.0E7, 1.0E8, 1.0E9, 1.0E10, 1.0E11, 1.0E12, 1.0E13, 1.0E14, 1.0E15, 1.0E16, 1.0E17, 1.0E18 ]; whichis imported by various modules. When i call it from main declared in main such as double divisor = const_dscales (2);That's an incorrect syntax. You should use const_dscales[2] instead.it works. If it is called the same way in a method of some class it returns inf. I tried to rename, but that will not make a difference. I made a function of it double scaler(double sc) {return std.c.math.pow(10.0, sc);} and had it as a private / public method in a class and the same thing happened. I can’t get it to work in class, be it private orpublic.Please enlighten me.Could you show a code sample so that we could compile and test it, please?
Aug 03 2008