It is currently Sat Dec 07, 2019 10:11 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Error message with fileformat LF - Includefile
PostPosted: Sat May 04, 2019 10:21 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 940
It seems that the Windows compiler has problems with an LF fileformat in the code of includefiles.

Code:
Interface MyIface
  xyz
EndInterface

Create a testfile with fileformat LF. Try this code and you will get the following correct error message: Garbage at the end of the line.

Now call this testfile from another source with an Includefile to the first file and you will get this senseless error message: 'EndInterface' is not a valid operator.

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: Error message with fileformat LF - Includefile
PostPosted: Sat May 04, 2019 10:55 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3145
Location: Boston, MA
Not following...Why would IncludeFile recognize linefeed as a terminator on Windows?

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: Error message with fileformat LF - Includefile
PostPosted: Sat May 04, 2019 11:19 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2053
Location: Germany
Interface works always with defined functions...

Code:
Interface MyIface
  xyz() ; <-- () ; integer result
  get.s() ; string result
  set(value.s) ; Args without *this
  var.f() ; float result
  ; etc
EndInterface

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Error message with fileformat LF - Includefile
PostPosted: Sat May 04, 2019 11:24 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 940
@ skywalk

Not sure what you mean.

The Pb compiler will probably have to accept LF as line end under Windows, which is what it does in general. Just like that, the Pb compiler on Linux and Mac will have to accept CrLf as line endings.

Just think about why :D


@mk-soft

I know this, but this has nothing to do why I wrote this bug report.

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: fryquez and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye