Search found 128 matches

by Boris the Old
Jan 12, 2019 5:02
Forum: Community Discussion
Topic: The Birth of BASIC.
Replies: 36
Views: 1917

Re: The Birth of BASIC.

Joshy In the late 1970's, when I started my own software business, I was writing multi-user business applications for Data General mini-computers using Business Basic. Far more advanced than the Basic used on micro-computers in the 1980's. And although I've programmed in many languages over the year...
by Boris the Old
Jan 05, 2019 17:26
Forum: Libraries
Topic: FLTK C for FreeBASIC Jan 09, 2017
Replies: 188
Views: 25527

Re: FLTK C for FreeBASIC Jan 09, 2017

Joshy

I've been using your FLTK wrapper for the past four years, and I'm looking forward to your new FLTK classes.

Many thanks.

Rod
by Boris the Old
Jan 05, 2019 17:06
Forum: Windows
Topic: question on call functions in DLL
Replies: 17
Views: 577

Re: question on call functions in DLL

fxm wrote:You have just to declare the library procedure names themselves.


As you say, it's a lot more simple. Thanks.

Rod
by Boris the Old
Jan 05, 2019 16:12
Forum: Windows
Topic: question on call functions in DLL
Replies: 17
Views: 577

Re: question on call functions in DLL

fxm wrote:If you load it at program startup and unload it at the end of the program, use the same shared library (DLL) but statically (with '#inclib'), that is simpler for calling its procedures.


In what way is it simpler? Surely the DLL procedures still need to be declared?

Thanks
Rod
by Boris the Old
Dec 22, 2018 7:42
Forum: Community Discussion
Topic: adding FreeBASIC to the TIOBE index
Replies: 36
Views: 1105

Re: adding FreeBASIC to the TIOBE index

@lizard There are no best or worst programming languages, just programming languages - each with its strengths and weaknesses. The trick to being a good programmer is using the correct language for the job. A "one language fits all" approach is not a good strategy. I use many languages in ...
by Boris the Old
Dec 22, 2018 4:46
Forum: Community Discussion
Topic: adding FreeBASIC to the TIOBE index
Replies: 36
Views: 1105

Re: adding FreeBASIC to the TIOBE index

@jj2007

These sort of "controversial" comments have been going around for the past 60 years, but it never did dissuade businesses from using the language.

We COBOL programmers, happy in our work, just smile politely. ;-)

Rod
by Boris the Old
Dec 21, 2018 18:19
Forum: Community Discussion
Topic: adding FreeBASIC to the TIOBE index
Replies: 36
Views: 1105

Re: adding FreeBASIC to the TIOBE index

@jj2007 Actually, it's very plausible. Just search the net and you'll find all kinds of references to the dominance of COBOL. https://blog.hackerrank.com/the-inevitable-return-of-cobol/ COBOL is a very powerful language that has all the modern stuff, such as OOP, and features that don't even exist i...
by Boris the Old
Dec 21, 2018 7:11
Forum: Community Discussion
Topic: adding FreeBASIC to the TIOBE index
Replies: 36
Views: 1105

Re: adding FreeBASIC to the TIOBE index

I think this discussion is pointless, since the TIOBE ratings are meaningless. About 80% of the world's code is written in COBOL, yet it is low on the TIOBE scale. It is a highly structured language that conforms to strict standards. It is also easy to use, so why would COBOL programmers need to sea...
by Boris the Old
Dec 17, 2018 3:03
Forum: General
Topic: Passing fixed-len string as arguments: possible but not recommended?
Replies: 19
Views: 472

Re: Passing fixed-len string as arguments: possible but not recommended?

@dodicat

My example was not intended to be a real one, but was written in haste to show the type of problems encountered when performing business calculations. I forgot to mention that.

Many decimal numbers do map to floats, but many don't.

Rod
by Boris the Old
Dec 16, 2018 18:03
Forum: General
Topic: Passing fixed-len string as arguments: possible but not recommended?
Replies: 19
Views: 472

Re: Passing fixed-len string as arguments: possible but not recommended?

... support for decimal arithmetic (floating point just isn't acceptable for business calculations)... What's wrong with floating point in FB? Could you be more specific? Carlos The problem is not with FB's floating point features - it's a problem because decimal numbers (base 10) cannot be mapped ...
by Boris the Old
Dec 16, 2018 3:45
Forum: General
Topic: Passing fixed-len string as arguments: possible but not recommended?
Replies: 19
Views: 472

Re: Passing fixed-len string as arguments: possible but not recommended?

As it stands, "fixed length string" support in FB is non-existent. It is the one big failing of FB. For the past few years I've been looking around for a single language that will replace our current languages - COBOL, PowerBasic, and Assembler (that's what old guys call Assembly). We writ...
by Boris the Old
Dec 15, 2018 3:14
Forum: General
Topic: Fixed Length String handling
Replies: 39
Views: 824

Re: Fixed Length String handling

I didn't notice this topic before. I'm surprised by the affirmation above because I was playing around with Unions those last 3 days and the one of the first thing I noticed is that a STRING*8 can be assigned 8 chars, while we need a ZSTRING*9 for the same job. So fixed-len strings are not exactly ...
by Boris the Old
Dec 15, 2018 2:37
Forum: General
Topic: Passing fixed-len string as arguments: possible but not recommended?
Replies: 19
Views: 472

Re: Passing fixed-len string as arguments impossible?

I would suggest that fixed length string/zstring data not be used in FB code, except where it's necessary for communicating with the outside world. It's too easy to write data outside the limits of the fixed string fields, or attempt to do things that are not supported. We use FLTK, which requires z...
by Boris the Old
Dec 14, 2018 6:45
Forum: General
Topic: Fixed Length String handling
Replies: 39
Views: 824

Re: Fixed Length String handling

There are two problems with FB's fixed string data type. Firstly, unlike other languages such as PowerBasic and COBOL, the FB fixed string is actually a ZString. And like a ZString, it doesn't allow embedded null characters. Secondly, the FB fixed string contains an extra null character to act as a ...
by Boris the Old
Oct 07, 2018 1:25
Forum: Projects
Topic: FBeauty.bas, a Geany custom command for code beautyfying
Replies: 21
Views: 6916

Re: FBeauty.bas, a Geany custom command for code beautyfying

....Also 80 column mark I often ignore. With today's wide screens and GUI based OS, its not so important. I don't even known where the 72 width comes from. I think I read it once, but forgot again. The 80 columns is from punched cards. Back in the '50s and '60s, each programming language had its ow...

Go to advanced search