• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Recent content by Loggy

  1. L

    XREF etc

    Thanks for the pointer @dinsdale247 - I've downloaded LDT for the moment on Windoze as an outline guide. I think it will help navigation. My code has grown organically rather than from a flow chart or other 'approved' approach so sometimes I forget a variable name or where it is also used. :)...
  2. L

    XREF etc

    Thanks @dinsday247. The folks at IDM are still working in LSP for UEStudio so no progress there, beta or not. I tried ZeroBrane which looks interesting but as my lua server doesn't actually have X installed and I work on it via ssh, I couldn't install successfully. The Windows version does not...
  3. L

    Sets please

    Certainly you can use tables as sets and with metatables construct rules for membership, __adding, __deleting etc. But as these are associative tables rather than indexed tables, each access is quite slow and each element will take a considerable space. OK with GB memory and TB storage (if you...
  4. L

    Sets please

    Wikipedia shows sets are available in quite a few programming languages:
  5. L

    XREF etc

    The next version of UEStudio (v 21) should work with LSP. That is due out in January so I will see whether I can get it to work, or how good it is.:)
  6. L

    XREF etc

    Thanks for your suggestions @gilzoide. I will ask IDM but as they also have UltraStudio they may already have gone down their own path. There is a wordfile for UltraEdit/UltraStudio so syntax highlighting including folding blocks and other things work fine. I have been using UE/US for many...
  7. L

    Sets please

    One thing missing from all implementations AFAIK appears to be sets, with union, intersection etc operators. In an earlier life I found Pascal (the best pre-open source revolution version was by Prospero) which taught me, as a then-Fortran user, the usefulness of understanding data structures...
  8. L

    Share your code!

    Which Lua? I usually use luajit (2.1.0-beta3) or my Ubuntu 18.04 LTS platform default is lua 5.2. I've never tried it on Windoze. I only use interactive Lua to check little ideas so I've never thought to use variables() that way. :) I use it in code where there is a puzzling error to check I...
  9. L

    XREF etc

    In my (relative) youth I spent a lot of time writing models in Fortran, mainly in the mathematics, physics and statistics modelling areas. I soon found that cross referencing and layout tools were very useful, particularly Forcheck that checks arguments, line numbers where identifiers are used...
  10. L

    Share your code!

    A simple library to call. Call the chunk by: local split,kpairs,dump,tSize,variables,tcopy,round,koncat,grep,file_exists,create_userdata = dofile "library.lua" -- or wherever it is stored
  11. L

    Indicore 3 Trading Strategy coding help

    You are better posting this on the fxcodebase forum as this is specific to FXCM's Trading Station rather than a general Lua question. You also need to have an ExtAsyncOperationFinished function that processes the orders and events. Before you try it, run it through luacheck and you will see a...
Top