Cela simplifiera l'écriture de la fonction toString du terrarium après.
This will make it easier to write the toString function of the terrarium later.
Seulement en combinaison avec toString= et line=.
Only in combination with toString= and line=.
Nous avons déjà vu un exemple de cela, à savoir la méthode toString de nombreux objets.
We already saw simple examples of this, like the toString method on objects.
Par exemple, d'autres prototypes de constructeurs remplacent la propriété du constructeur et fournissent leurs propres méthodes toString.
For example, other constructors' prototypes override the constructor property and provide their own toString methods.
Ce que je propose, c'est que nous définissons notre fonction gcd dans toString.
What I propose is that we define our gcd function in toString. val g equals gcd
La méthode la plus évidente de l'objet terrarium est toString, qui transforme un terrarium en chaîne de caractères.
The most straightforward method of a terrarium object is toString, which transforms a terrarium into a string.
Ajoute et / ou supprime des éléments d'un tableau. toString ()
Adds and/or removes elements from an array. toString()
Par exemple, ceci signifie que la méthode toString() est toujours au même offset dans la vtable pour toutes les classes.
For example, this means that the toString() method is always at the same vtable offset for every class.
Une classe peut aussi avoir des méthodes, appelables sur une instance, comme la méthode toString() dans l'exemple.
A class can also have methods, callable on an instance, as the method toString() here.
Ce comportement peut être résolu de façon générique en utilisant la méthode toString().
You can work around this limitation in a generic fashion by using toString().
Par défaut, cette méthode écrit une nouvelle chaîne dans un fichier avec la méthode toString().
By default, this method will write a new string generated with the toString() method to a file.
Retourne un ordre qui compare des objets par l'ordre naturel de leurs représentations de chaîne retournée par toString ().
Returns an ordering that compares objects by the natural ordering of their string representations as returned by toString().
L'appel de la méthode toString() renvoie le texte contenu dans la sélection.
Calling the toString() method returns the text contained in the selection, e.g