you need to use a dynamic array, i.e. a POINTER TO ARRAY. Then you can specify the size with NEW.
In Java it is exactly the same but the syntax differs slightly
Josef
Search found 262 matches
- Sat Jun 24, 2023 7:49 am
- Forum: Component Pascal
- Topic: How to define the size of an array during runtime?
- Replies: 3
- Views: 24430
- Thu Mar 30, 2023 8:14 pm
- Forum: BlackBox Framework
- Topic: Team development
- Replies: 2
- Views: 22643
Re: Team development
As far as I know, Oberon microsystems did not use such tools when developing Blackbox (Oberon/F), i.e. the versions, backups, releases etc. have been maintained manually. The work was split in very big chunks between highly talented individuals, one working on the i386 compiler, one on the Motorola ...
- Thu Mar 10, 2022 4:43 pm
- Forum: News
- Topic: ALERT: VRS support terminated by hosting provider
- Replies: 4
- Views: 31297
Re: ALERT: VRS support terminated by hosting provider
EDIS fixed the reverse DNS setting (PTR record) for our new IP address.
So, email should be working again.
- Josef
So, email should be working again.
- Josef
- Sat Mar 05, 2022 8:48 am
- Forum: News
- Topic: ALERT: VRS support terminated by hosting provider
- Replies: 4
- Views: 31297
ALERT: VRS support terminated by hosting provider
ALERT Our hosting provider terminated support for VRS, which is the kind of virtual server blackboxframework.org was built on. The center is trying to arrange for a new plan probably based on KVM. However, there can be service interruptions until everything is set up again and data is migrated to th...
- Sun Nov 14, 2021 1:41 pm
- Forum: System
- Topic: DLL memory model
- Replies: 2
- Views: 12363
Re: DLL memory model
If I remember correctly, modules are marked as "unusable" when unloaded. If a procedure variable is called that calls such a code address, a trap is generated and it is discovered and reported correctly that a call to an unloaded module has been made. However, the physical memory pages are...
- Sun Sep 26, 2021 6:23 pm
- Forum: Feature
- Topic: Strings.IntToStringForm: convert a number to Oberon format
- Replies: 2
- Views: 25670
Re: Strings.IntToStringForm: convert a number to Oberon form
Sorry I don't understand your problem. You can optimize your procedure to PROCEDURE WriteHex(i: INTEGER); VAR minWidth: INTEGER; BEGIN minWidth := 1; W.WriteIntForm(i, TextMappers.hexadecimal, minWidth, "0", FALSE) END WriteHex; and have the same behaviour. - Helmut Helmut, I think this i...
- Thu Sep 09, 2021 7:18 pm
- Forum: BlackBox Framework
- Topic: SYSTEM.TYP - Why is it even there?
- Replies: 1
- Views: 12143
Re: SYSTEM.TYP - Why is it even there?
according to PSI it seems to me that TYP(v) gives you the dynamic type of record variable v (or some p^) while ADR(T) gives you the type of the statically known type T.
- Josef
- Josef
- Wed Oct 14, 2020 9:29 am
- Forum: Bug
- Topic: Compiler trap in Real64 op ADR(x)
- Replies: 13
- Views: 20958
Re: Compiler trap in Real64 op ADR(x)
For a permanent correction, why not amend CheckForm? It would be the most 'straight' logic: CheckForm checks that the format of data is correct. It is correct to convert a Pointer to a Real64, and that't what CheckForm should return. Amending other procedures looks as a workaround to me. PROCEDURE ...
- Mon Oct 12, 2020 9:37 am
- Forum: Bug
- Topic: Trap on [code] procedure call
- Replies: 6
- Views: 13753
Re: Trap on [code] procedure call
There would also be the alternative of treating structured value parameters as VAR pars, i.e. to pass the address in eax.
- Fri Oct 09, 2020 11:41 am
- Forum: Bug
- Topic: Trap on [code] procedure call
- Replies: 6
- Views: 13753
Re: Trap on [code] procedure call
the first parameter is passed as register eax but in case of a RECORD value parameter this is not possible. So it should be rejected. I would suggest to reject it in the backend, though, because code procedures are highly platform specific. see DevCPC.Call: Result(x.obj.link, tag) (* use result load...