[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] The #include re-read work-around ... Stopped working !



PureBytes Links

Trading Reference Links




Hello,
 
No, #included file should be TESTED and COMPLETE. This is the 
idea.
Once you have working and tested part of code you can move it 
to #include file.
For development use AA editor.
 
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Salil V 
  Gangal 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Saturday, May 10, 2003 9:03 
AM
  Subject: RE: [amibroker] The #include 
  re-read work-around ... Stopped working !
  
  Bob,
  
    >>Any 
    possible reason why the #include file 
    should be re-read for every execution (invocation) of the program that 
    contains the #include statement?<<
  Of course there is the obvious reason !  The #include 
  file contains the code that is potentially changing per 
  execution - especially (as I wrote below) while I'm developing the script. So 
  there is every reason that it be re-read per execution.  The question is 
  how to force AmiBroker re-read the #include file short of exiting 
  AmiBroker and re-invoking it ?
  
    >> I suspect you'd find the same 
    "bug" in any current language. <<
  Compilers re-read the include files (header files) each and every time 
  they compile a program. I seriously doubt if I'll find this 'bug' in any 
  current language.
  Regards,
  - Salil V 
  Gangal
  Bob Jagow <bjagow@xxxxxxxxxxx> wrote:
  <BLOCKQUOTE 
  >
    
    Any possible reason 
    why the #include file should be re-read 
    for every execution (invocation) of the program that contains the #include 
    statement?
    I suspect you'd find the same "bug" in 
    any current language. 
    
      <FONT face=Tahoma 
      size=2>-----Original Message-----From: Salil V Gangal 
      [mailto:salil_gangal@xxxxxxxxx]Sent: Friday, May 09, 2003 9:49 
      PMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: 
      [amibroker] The #include re-read work-around ... Stopped working 
      !
      
      Dingo,
       
      I was developing script for last 1/2 hour. For every execution I was 
      adding a space in the script containing #include statement.  I must 
      have executed it 15 to 20 times. And now looks like AmiBroker is no longer 
      re-reading the #include file, evenif I am  adding / deleting spaces 
      and adding deleting some trivial strings. I saved and re-loaded the 
      'Formula' file a couple of time also.  Looks like the work-around has 
      stopped working.
       
      Any other work-around short of exiting AmiBroker and invoking it 
      again ?
       
      Regards,
       
      - Salil V 
      GangalSalil V Gangal 
      <salil_gangal@xxxxxxxxx> wrote: 
      <BLOCKQUOTE 
      >
        
        Dingo,
         
        Oh ... okay.
         
        Thanks for the work-around. Just adding a space forced the 
        re-reading.
         
        Regards,
         
        - Salil V 
        Gangaldingo 
        <dingo@xxxxxxxxxx> wrote: 
        <BLOCKQUOTE 
        >
          
          <FONT face=Arial color=#0000ff 
          size=2>TJ reported that it worked the way as you describe. So it is 
          "by design".  You need to change the formula in the AA window 
          (add a space) or reload the formula to get it to re-read the Included 
          file.  
          <FONT face=Arial color=#0000ff 
          size=2> 
          <FONT face=Arial color=#0000ff 
          size=2>see msg 37177.
           
          <FONT face=Arial color=#0000ff 
          size=2>d
          
            
            <FONT 
            face=Tahoma size=2>-----Original Message-----From: Salil 
            V Gangal [mailto:salil_gangal@xxxxxxxxx] Sent: Friday, 
            May 09, 2003 11:13 PMTo: 
            amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] The 
            #include does not get re-read for each execution 
            ?
            <FONT 
            color=#ff409f>Tomasz,
             
            It looks as if the #include file is not getting re-read 
            from the for every execution (invocation) of the program that 
            contains the #include statement.  It looks like a 
            bug.
             
            Create a .AFL file with text (say)
             
            "Hello World!";
             
            And include this above file using #include in (say) 
            the 'Guru Formula' and get the commentary.  It will 
            contain the string Hello World!
             
            Now change the disk file without exiting 
            AmiBroker  to contain the string following string and 
            save it to disk.
             
            "Hello World! Hello World!";
             
            Flip to 'Guru' Formula and click 'Apply'  ... the string 
            that's show in the commentary still is a single Hello World! rather 
            than double Hello World!
             
            Regards,
             
            - Salil V 
            Gangal
            
            
            Do you Yahoo!?<A 
            href="">The 
            New Yahoo! Search - Faster. Easier. Bingo. Send BUG 
            REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
            suggest@xxxxxxxxxxxxx-----------------------------------------Post 
            AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web 
            page: <A 
            href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
            group FAQ at: <A 
            href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
            Your use of Yahoo! Groups is subject to the <A 
            href="">Yahoo! Terms of 
            Service. Send BUG REPORTS to 
          bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
          suggest@xxxxxxxxxxxxx-----------------------------------------Post 
          AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web 
          page: <A 
          href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
          group FAQ at: <A 
          href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
          Your use of Yahoo! Groups is subject to the <A 
          href="">Yahoo! Terms of 
          Service. 
        
        
        Do you Yahoo!?<A 
        href="">The 
        New Yahoo! Search - Faster. Easier. Bingo. Send BUG 
        REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
        suggest@xxxxxxxxxxxxx-----------------------------------------Post 
        AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web 
        page: <A 
        href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
        group FAQ at: <A 
        href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
        Your use of Yahoo! Groups is subject to the <A 
        href="">Yahoo! Terms of 
        Service. 
      
      
      Do you Yahoo!?<A 
      href="">The 
      New Yahoo! Search - Faster. Easier. Bingo. Send BUG 
      REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
      suggest@xxxxxxxxxxxxx-----------------------------------------Post 
      AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: 
      <A 
      href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
      group FAQ at: <A 
      href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
      Your use of Yahoo! Groups is subject to the <A 
      href="">Yahoo! Terms of Service. 
      Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 
    SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx-----------------------------------------Post 
    AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: 
    <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
    
  
  
  Do you Yahoo!?<A 
  href="">The New 
  Yahoo! Search - Faster. Easier. Bingo. Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.