Post bugreports for the Windows version here
Cyllceaux
Enthusiast
Posts: 510 Joined: Mon Jun 23, 2014 1:18 pm
Post
by Cyllceaux » Sat Jun 14, 2025 6:11 pm
I know the strRecord should be before strSchema but the intersting thing is, if I change the order *schema.strSchema still workes
Code: Select all
Structure strVTable
*vtable
EndStructure
Structure strSchema Extends strVTable
name.s
Map types.i()
List *records.strRecord()
EndStructure
Structure strRecord Extends strVTable
Map *entries()
*schema.strSchema
EndStructure
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
mk-soft
Always Here
Posts: 6236 Joined: Fri May 12, 2006 6:51 pm
Location: Germany
Post
by mk-soft » Sat Jun 14, 2025 6:21 pm
Change order of structures ...
Code: Select all
Structure strVTable
*vtable
EndStructure
Structure strRecord Extends strVTable
Map *entries()
*schema.strSchema
EndStructure
Structure strSchema Extends strVTable
name.s
Map types.i()
List *records.strRecord()
EndStructure
Before using a structure in a structure, it should first be defined
HeX0R
Addict
Posts: 1198 Joined: Mon Sep 20, 2004 7:12 am
Location: Hell
Post
by HeX0R » Sun Jun 15, 2025 10:18 am
but shouldn't we expect a useful error message than at least?
Fred
Administrator
Posts: 18171 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Sun Jun 15, 2025 10:38 am
This one should work
Cyllceaux
Enthusiast
Posts: 510 Joined: Mon Jun 23, 2014 1:18 pm
Post
by Cyllceaux » Sun Jun 15, 2025 11:15 am
Fred wrote: Sun Jun 15, 2025 10:38 am
This one should work
What should work? The code or the useful error message?
For me it is not a problem but both would be nice
PBJim
Enthusiast
Posts: 296 Joined: Fri Jan 19, 2024 11:56 pm
Post
by PBJim » Sun Jun 15, 2025 11:21 am
Cyllceaux wrote: Sun Jun 15, 2025 11:15 am
What should work? The code or the useful error message?
It confused me also
I think possibly the problem here is that the PB compiler doesn't always validate a structure used in a pointer element, so therefore when it doesn't validate, it gets passed to the C compiler, or assembler.
For instance, this undefined structure compiles without any errors.
Code: Select all
Structure strVTable
*vtable.mystructure
EndStructure
jacdelad
Addict
Posts: 2001 Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa
Post
by jacdelad » Sun Jun 15, 2025 11:57 am
mk-soft wrote: Sat Jun 14, 2025 6:21 pm
Change order of structures ...
Code: Select all
Structure strVTable
*vtable
EndStructure
Structure strRecord Extends strVTable
Map *entries()
*schema.strSchema
EndStructure
Structure strSchema Extends strVTable
name.s
Map types.i()
List *records.strRecord()
EndStructure
Before using a structure in a structure, it should first be defined
strRecord uses strSchema and strSchema uses strRecord. Shouldn't this be illegal in any order?
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
NicTheQuick
Addict
Posts: 1514 Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:
Post
by NicTheQuick » Sun Jun 15, 2025 12:13 pm
jacdelad wrote: Sun Jun 15, 2025 11:57 am
mk-soft wrote: Sat Jun 14, 2025 6:21 pm
Change order of structures ...
Code: Select all
Structure strVTable
*vtable
EndStructure
Structure strRecord Extends strVTable
Map *entries()
*schema.strSchema
EndStructure
Structure strSchema Extends strVTable
name.s
Map types.i()
List *records.strRecord()
EndStructure
Before using a structure in a structure, it should first be defined
strRecord uses strSchema and strSchema uses strRecord. Shouldn't this be illegal in any order?
Not with pointers.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Fred
Administrator
Posts: 18171 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Sun Jun 15, 2025 2:02 pm
It shouldn 't have any error, your code is supported. That's why it compiles but the asm is wrong somehow.
jacdelad
Addict
Posts: 2001 Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa
Post
by jacdelad » Sun Jun 15, 2025 9:16 pm
NicTheQuick wrote: Sun Jun 15, 2025 12:13 pm
jacdelad wrote: Sun Jun 15, 2025 11:57 am
mk-soft wrote: Sat Jun 14, 2025 6:21 pm
Change order of structures ...
Code: Select all
Structure strVTable
*vtable
EndStructure
Structure strRecord Extends strVTable
Map *entries()
*schema.strSchema
EndStructure
Structure strSchema Extends strVTable
name.s
Map types.i()
List *records.strRecord()
EndStructure
Before using a structure in a structure, it should first be defined
strRecord uses strSchema and strSchema uses strRecord. Shouldn't this be illegal in any order?
Not with pointers.
Ah yes, my fault.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Cyllceaux
Enthusiast
Posts: 510 Joined: Mon Jun 23, 2014 1:18 pm
Post
by Cyllceaux » Thu Jun 19, 2025 9:36 am
just for me... is it a bug or not?
I created that thread in "Codingquestion".
Someone moved it to the bug section and @kiffi moved it back zu "Codingquestion".
Now I'm confused
Fred
Administrator
Posts: 18171 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Thu Jun 19, 2025 10:20 am
it's a bug