Re: import object from another file

2019-02-05 Thread miran
> I created myself some future problems by writing `include objects` FTFY

Re: import object from another file

2019-02-05 Thread Stefan_Salewski
> I solved the problem by writing include objects Sure, you can do that, but it is not very smart. Why do you ask here when you are not willing to learn something?

Re: import object from another file

2019-02-05 Thread tbutton
I solved the problem by writing objects Run

Re: import object from another file

2019-02-04 Thread Stefan_Salewski
Have you considered reading the fine tutorial? [https://nim-lang.org/docs/tut1.html](https://nim-lang.org/docs/tut1.html) As you learn, in Nim like in other languages like Modula or Oberon public symbols in modules have to be marked with asteriks, so try something like type

Re: import object from another file

2019-02-04 Thread tbutton
wrote, now this error objects.nim(3, 15) Error: invalid indentation

Re: import object from another file

2019-02-04 Thread slangmgh
` type object3d*=object ` Run

import object from another file

2019-02-04 Thread tbutton
hello, i have 2 files - main.nim and objects.nim main.nim: import libs/csfml/csfml import libs/opengl/opengl import objects var window = newRenderWindow(videoMode(500, 500), "OpenGL") window.verticalSyncEnabled = true opengl.loadExtensions()