Search found 68 matches

by adimetrius
Sat Jul 25, 2020 2:34 pm
Forum: Common questions
Topic: How to copy files in BlackBox under Linux via Wine?
Replies: 10
Views: 17874

Re: How to copy files in BlackBox under Linux via Wine?

I was working today on a similar task - making copies of files, however under Linux version of BlackBox. First, I tried to do it the 'native' way: looked up stackoverflow and other sources on 'how to copy files under linux"; ended with using libc function sendfile; found an example in c++ and a...
by adimetrius
Sat Jul 25, 2020 1:11 pm
Forum: Bug
Topic: Compiler trap in Real64 op ADR(x)
Replies: 13
Views: 23168

Re: Compiler trap in Real64 op ADR(x)

:D
by adimetrius
Sat Jul 25, 2020 10:21 am
Forum: Common questions
Topic: How to copy files in BlackBox under Linux via Wine?
Replies: 10
Views: 17874

Re: How to copy files in BlackBox under Linux via Wine?

Zinn, the behaviour you're experiencing is weird and might be a bug in Wine. I've looked up the implementation of CopyFileW; it is now a wrapper around CopyFileExW, and at the end of the latter there is a specific comment and call aimed to achieve exactly what you want - for the copy to have the ori...
by adimetrius
Fri Jul 24, 2020 9:24 pm
Forum: Bug
Topic: Compiler trap in Real64 op ADR(x)
Replies: 13
Views: 23168

Re: Compiler trap in Real64 op ADR(x)

Suggested temporary fix: PROCEDURE GenFLoad* (VAR src: Item); VAR f: BYTE ; mf: INTEGER; BEGIN IF src.mode = Con THEN (* predefined constants *) DevCPE.GenByte(0D9H); DevCPE.GenByte(0E8H + src.offset) ELSIF src.form = Int64 THEN DevCPE.GenByte(0DFH); GenCExt(28H, src) ELSE f := src.form; IF src.form...
by adimetrius
Tue Jul 14, 2020 10:57 am
Forum: BlackBox Framework
Topic: Views.Old doesn't impement documentation specs
Replies: 5
Views: 11668

Re: Views.Old doesn't impement documentation specs

I see what you mean: you expect Old return "v=NIL", when input a "alien" file with "conv = NIL", but the framework does not; and expect Import return "v=NIL", when input a "alien" file with "conv = NIL", framework does same; Not exactly: 1...
by adimetrius
Mon Jul 13, 2020 5:44 pm
Forum: BlackBox Framework
Topic: Views.Old doesn't impement documentation specs
Replies: 5
Views: 11668

Re: Views.Old doesn't impement documentation specs

Iuowy, I hope this explanation helps: conv := NIL; name := 'picture.png'; loc := Files.dir.This(); v := Views.Old(Views.dontAsk, loc, name, conv); IF v = NIL THEN Log.String("I expect v = NIL here, because picture.png does not contain (any) View, and I passed NIL for conveter, which means, 'Don...
by adimetrius
Fri Jul 10, 2020 9:55 am
Forum: BlackBox Framework
Topic: [untagged] magic
Replies: 2
Views: 9131

[untagged] magic

Colleagues, why does the following work - I mean, I cannot find a specification for this behavior, other than the text of the compiler itself; but then the compiler is an implementation that should comply with a certain definition, in our case - the Language Report and, possibly, the Platform-Specif...
by adimetrius
Thu Jul 09, 2020 9:04 pm
Forum: BlackBox Framework
Topic: Views.Old doesn't impement documentation specs
Replies: 5
Views: 11668

Views.Old doesn't impement documentation specs

Colleagues, PROCEDURE Old (ask: BOOLEAN; VAR loc: Files.Locator; VAR name: Files.Name; VAR conv: Converters.Converter): View conv determines the converter which is used for reading the document. conv = NIL means that no conversion is necessary, i.e., the file format already has the standard BlackBox...
by adimetrius
Wed Jun 24, 2020 11:46 am
Forum: BlackBox Framework
Topic: Theme framework
Replies: 3
Views: 10057

Re: Theme framework

Iuowy,

I have updated the repo and made it public. Please check it out again. https://github.com/adimetrius/TylerSrc
Ivan has updated the BBCP 1.8dev "cutting edge" binaries and made sure Tyler's ok with them, check 1.8dev out at https://blackbox.oberon.org/download
by adimetrius
Tue Jun 23, 2020 8:47 pm
Forum: Component Pascal
Topic: Forward type declarations
Replies: 2
Views: 9830

Re: Forward type declarations

Thank you for the reference, I didn't know this explanation was there. Maybe, indeed, this was driven by the desire to do away with "Old-style pointer forward declarations like T = POINTER TO TDesc ". One application of this rule that seems especially useless is forward-declarations of bas...