Giter Club home page Giter Club logo

Comments (3)

zbyti avatar zbyti commented on June 4, 2024

Use globals variables with absolute mapping. Feature of reuse memory is compilator thing and probably new feature request.

from mad-pascal.

GSoftwareDevelopment avatar GSoftwareDevelopment commented on June 4, 2024

I think you misunderstood my message.

I suggest you rename the PASCAL modifier (for functions/procedures) to something more appropriate for the action it performs.

Alternatively, the other way around, i.e.
Use a modifier, e.g. KEEPVARS, to keep local variables in memory at all times.

The normal Pascal behavior was to release local variables from memory and create them anew each time a function/procedure was called.

So, the above modifier is perfectly fine in place of the completely incompatible "PASCAL" - as if it's a feature of the language, and we know it's not, as it's normal behavior for any language that supports calling context.

from mad-pascal.

zbyti avatar zbyti commented on June 4, 2024

Myślę, że to jest do zamknięcia - proponowana realizacja jest trochę bez sensu.

Albo kompilator sam będzie umiał rozpoznać, które zmienne lokalne można użyć ponownie albo nie.

Jeżeli sam mam wskazywać takie zmienne to równie dobrze sam mogę dbać o ponowne używanie pewnej puli zmiennych globalnych.

Tak robiłem w ostatnim projekcie i się w tym pogubiłem do póki nie zacząłem emulować aliasów do tych zmiennych. Zrobiło się z tego więcej pisaniny a na końcu i tak straciłem kontrolę czy jak procedura nie wywołuje procedury to czy moja pula nie jest za mała i jednak nie nadpiszę swoich danych.

Wyszło na to, że kompromisem dla ponownego używania zmiennych jest podzielenie projektu na moduły itd.


@tebe6502 uważam, że nie ma sensu by to dalej wisiało, sądzę, że to jest do zamknięcia.

from mad-pascal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.