Nim: ksywka

Created on 26 Sep 2018  路  4Comments  路  Source: nim-lang/Nim

  • Czy jest szansa dodania ksywki dla funkcji w obiekcie?
    co艣 jak jest w Ruby alias_method po prostu pewna metoda mog艂a by si臋 nazywac na dwa sposoby.
  • Brakuje mi litera艂贸w z Ruby, czyli pewnych warto艣ci, kt贸re sa niezmienne i unikalne w skali ca艂ego programu. co艣 jak :test
  • W jaki spos贸b mozna dodac biblioteke w C?

Most helpful comment

Thankfully we've got a couple of Polish developers among us. My Polish is rusty and I'm too lazy to use accents, but let me give it a shot :)


  • Nie ma, ale mozesz napisac macro ktory pozwoli takie cos zrobic. Nawet to by byl dobry pierwszy macro dla kogos kto nigdy nie uzywal ich w Nim.

  • O tym to ja nie wiem. Nie uzywalem Ruby duzo wiec nie wiem do konca jak :test dziala. Ale cos podobnego napewno da sie zrobic. Nim jest bardzo elastyczny :)

  • http://rosettacode.org/wiki/Call_a_foreign-language_function#Nim

All 4 comments

This is what I get from google translate, to save other people time:

nickname

  • Is there a chance to add a nickname for a function in the object? something like in Ruby aka method simply a method could be called in two ways.
  • I miss the Ruby literals, i.e. certain values that are unchanging and unique in the scale of the entire program. something like :test
  • How can I add a library in C?

This is silly, who knows if the OP will be able to understand our response.

Thankfully we've got a couple of Polish developers among us. My Polish is rusty and I'm too lazy to use accents, but let me give it a shot :)


  • Nie ma, ale mozesz napisac macro ktory pozwoli takie cos zrobic. Nawet to by byl dobry pierwszy macro dla kogos kto nigdy nie uzywal ich w Nim.

  • O tym to ja nie wiem. Nie uzywalem Ruby duzo wiec nie wiem do konca jak :test dziala. Ale cos podobnego napewno da sie zrobic. Nim jest bardzo elastyczny :)

  • http://rosettacode.org/wiki/Call_a_foreign-language_function#Nim

second point

alias for method of object
object.printok()
alias printok to okprint
object.okprint() is good method and this same than above

in my opinion this must be implemented in language

Was this page helpful?
0 / 5 - 0 ratings