diff options
Diffstat (limited to 'it-it')
| -rw-r--r-- | it-it/logtalk-it.html.markdown | 5 | ||||
| -rw-r--r-- | it-it/pyqt-it.html.markdown | 2 | ||||
| -rw-r--r-- | it-it/python-it.html.markdown | 2 | ||||
| -rw-r--r-- | it-it/qt-it.html.markdown | 2 | ||||
| -rw-r--r-- | it-it/rust-it.html.markdown | 4 | 
5 files changed, 9 insertions, 6 deletions
diff --git a/it-it/logtalk-it.html.markdown b/it-it/logtalk-it.html.markdown index 7f1e9eeb..5cc53e6f 100644 --- a/it-it/logtalk-it.html.markdown +++ b/it-it/logtalk-it.html.markdown @@ -43,7 +43,7 @@ Un oggetto incapsula le dichiarazioni e le definizioni dei predicati. Gli oggett  :- end_object.  ``` -# Compilazione dei file sorgenti +# Compilazione e il caricamento dei file sorgenti  Supponendo che il codice di cui sopra per l'oggetto `list` venga salvato in un file` list.lgt`, esso può essere compilato e caricato utilizzando il predicato predefiniti `logtalk_load/1` o la sua abbreviazione `{}/1`, con il percorso del file come argomento (l'estensione può essere omessa): @@ -52,6 +52,9 @@ Supponendo che il codice di cui sopra per l'oggetto `list` venga salvato in un f  yes  ``` +In generale, le entità potrebbero avere dipendenze sulle entità definite in altri file di origine (ad esempio le entità di biblioteca). Per caricare un file e tutte le sue dipendenze, la soluzione consigliata consiste nel definire un file _loader_ che carica tutti i file necessari per un'applicazione. Un file loader è semplicemente un file di origine, in genere denominato `loader.lgt`, che effettua chiamate ai predicati built-in `logtalk_load/1-2`, di solito +da una direttiva `initialization/1` per la portabilità e conformità agli standard. Caricatore file vengono forniti per tutte le librerie, strumenti ed esempi.  +  # Inviare un messaggio ad un oggetto  L'operatore infisso `::/2` è usato per inviare messaggi ad un oggetto. Analogamente al Prolog, è possibile fare backtracking per le soluzioni alternative: diff --git a/it-it/pyqt-it.html.markdown b/it-it/pyqt-it.html.markdown index 855a0c75..7238dd7b 100644 --- a/it-it/pyqt-it.html.markdown +++ b/it-it/pyqt-it.html.markdown @@ -1,7 +1,7 @@  ---  category: tool  tool: PyQT -filename: learnpyqt.py +filename: learnpyqt-it.py  contributors:      - ["Nathan Hughes", "https://github.com/sirsharpest"]  translators: diff --git a/it-it/python-it.html.markdown b/it-it/python-it.html.markdown index e81d1676..794e7a70 100644 --- a/it-it/python-it.html.markdown +++ b/it-it/python-it.html.markdown @@ -640,7 +640,7 @@ i.age  # => Emette un AttributeError  # Puoi importare moduli  import math -print math.sqrt(16)  # => 4 +print math.sqrt(16)  # => 4.0  # Puoi ottenere specifiche funzione da un modulo  from math import ceil, floor diff --git a/it-it/qt-it.html.markdown b/it-it/qt-it.html.markdown index 4543818f..d7469f67 100644 --- a/it-it/qt-it.html.markdown +++ b/it-it/qt-it.html.markdown @@ -2,7 +2,7 @@  category: tool  tool: Qt Framework  language: c++ -filename: learnqt.cpp +filename: learnqt-it.cpp  contributors:      - ["Aleksey Kholovchuk", "https://github.com/vortexxx192"]  translators: diff --git a/it-it/rust-it.html.markdown b/it-it/rust-it.html.markdown index 6b379f93..e4b7c33f 100644 --- a/it-it/rust-it.html.markdown +++ b/it-it/rust-it.html.markdown @@ -130,14 +130,14 @@ fn main() {      /////////////      // Strutture -    struct Point { +    struct Punto {          x: i32,          y: i32,      }      let origine: Punto = Punto { x: 0, y: 0 }; -    // Ana struct con campi senza nome, chiamata ‘tuple struct’ +    // Una struct con campi senza nome, chiamata ‘tuple struct’      struct Punto2(i32, i32);      let origine2 = Punto2(0, 0);  | 
