Author Topic: Not work in subfolder  (Read 632 times)

0 Members and 1 Guest are viewing this topic.

Alex_Longard

  • Guest
Not work in subfolder
« on: August 25, 2020, 11:25:32 PM »
Hello Charles!
I update O2 for latest version, and this not work in subfolder
C:\program files

Old version (for 2018 year) work correctly.

New version can not find include files in "inc" directory if i copy O2 folder in program files...
I tryed
"#include" and "uses" instructions for this.


Very big thanks for you cool compiler!!

PS: please return instructions "public, protected, private" for classes and make please inheritance for class definition like:
Code: [Select]
class one
a as int
...
end class

class two: one  ' or class two(one)
a as int
...
end class

Charles Pegge

  • Guest
Re: Not work in subfolder
« Reply #1 on: August 26, 2020, 02:34:19 AM »
Hi Alex,

o2 is itself a 32bit program, but I have not tried moving o2 into program files(x86)

the default includepath is "..\inc\"
but you can specify any path including absolute paths

uses is a short form of #include which allows quotes and '.inc' to be omitted.


Inherited classes can be specified in various ways consistent with classes having the syntax of type

Code: [Select]
class ca
  int i
end class

class cb
  'single-line of inheritance
  extends ca  'can also use 'of' or 'from'

  'multiple inheritance
  has ca
  ca
  ca aa,bb
  aa as ca

  int b
end class

#recordof cb


public, private and protected have been disabled but you can still use these terms indicatively.


static members are naturally private; they are always invisible outside the class.



« Last Edit: August 26, 2020, 03:00:13 AM by Charles Pegge »

Alex_Longard

  • Guest
Re: Not work in subfolder
« Reply #2 on: August 26, 2020, 04:21:42 AM »
O'k Charles, big thanks sir!!! :)
I will try.